1.0.0 • Published 14 days ago

@odczynflnpm/omnis-veritatis-nesciunt v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

@odczynflnpm/omnis-veritatis-nesciunt Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ES spec-compliant shim for Date. Invoke its "shim" method to shim Date if it is unavailable or noncompliant.

This package implements the es-shim API “multi” interface. It works in an ES3-supported environment, and complies with the spec.

Most common usage:

var assert = require('assert');

var shims = require('@odczynflnpm/omnis-veritatis-nesciunt');

assert.deepEqual(shims, [
	'Date',
	'Date.prototype.getFullYear',
	'Date.prototype.getMonth',
	'Date.prototype.getDate',
	'Date.prototype.getUTCDate',
	'Date.prototype.getUTCFullYear',
	'Date.prototype.getUTCMonth',
	'Date.prototype.toUTCString',
	'Date.prototype.toDateString',
	'Date.prototype.toString',
	'Date.prototype.toISOString',
	'Date.prototype.toJSON',
	'Date.now',
	'Date.parse',
]);

require('@odczynflnpm/omnis-veritatis-nesciunt/auto'); // will be a no-op if not needed

assert.ok(new Date() instanceof Date);
assert.equal(typeof Date.now(), 'number');

// etc, with all the Date methods you expect

Tests

Simply clone the repo, npm install, and run npm test

JSON-SchemacontainsefficientrapidReflect.getPrototypeOfstateless@@toStringTagbeanstalklockfilereplayReactiveX.envhashpathES2020arraysvpcshebangArrayBuffer.prototype.sliceObjectrm -frlimites2018apiclonees-shim API__proto__authlogyupencryptionObject.valuesconfigcensornodejsfastdataViewestreevalidateespreefunctionlazyes2017Object.assignprotocol-buffersfpsmrureactstableassertionwalk-0consumegetOwnPropertyDescriptordataviewkeycharacterHyBiECMAScript 2018negativerouteassignstringifyassertglacierRxcolorArray.prototype.findLastvaluefile systemsymbolcommandshaminternaltypesutilcloudtrailwalkingconcatawesomesaucetimebufferflattenStreamsclass-validatorhasOwnPropertychaistreamsupshrinkwraptrimEndflaglinkreducerprettydotenvkinesisless cssoptimistwatchFileregularcomparewatchingflatdescriptorstaparraytestingprunecollectionobjeslintpluginwatchernpmpackagesformstdlibparentsmatchAllYAMLcacheroute53parserphonedynamodbtty$.extendspinnerscharactersprefixpromiseprivate datalocationtypedarraysbyteOffsetcommand-linepreprocessorFloat32ArrayexpressionECMAScript 2016ECMAScript 2021package.jsonCSSlivenested cssless mixinss3libphonenumbermatchtoolsObject.fromEntriesremoveamazonscheme-validationserializationfindLastsharedES2017widthwhichcryptURLSearchParamsidexecMapAsyncIteratormatchesRFC-6455propdeterministicgraphqlgetPrototypeOfnumberjwtwarningdefinePropertyrequirecloudwatchECMAScript 2023ReactiveExtensionstypesafetypeerrorsymlinkworkspace:*higher-orderlooktouchenumerablemake dirsameValueZeroargvmkdirdebugwritableclassesfolderjapanesezodmimetypesawseveryemrURLmodulefull-widthtoArrayESnexttapejsonpathastSetlook-upelasticachegetoptsharedarraybufferlistenersflagsgetio-tsStreamless.jsbrowserslistreadablestreamesbootstrap csscodeshookformlimitedECMAScript 7taskreal-timejsArray.prototype.flatsequenceproxyglobloadingjsondayjsUint32ArraysetPrototypeOfdeepredux-toolkitqueuefunctionsregexpserializeshellsnscjkECMAScript 3bytereact-hook-formtypeofslotpackagesideairbnbstarterlastpredictablerdscloudsearchasciies2016256descriptiongetintrinsicES2021typanionfullwidthwrapwordbreakthroatTypeScriptpolyfillinputtc39regular expressionutilitiespromisesless compilertoSortednegative zerosuperagentchromebusyquotesafel10ndatastructurefetchutil.inspectFunction.prototype.namesomelruformatelectronpipeawaithttpsfluxcompilerrm -rfiteratorhardlinksmetadataurlenderfind-upfstoStringTagstyled-componentsconfigurableRegExp.prototype.flagsprotosettingsUint16ArraytoobjectweakmapjsdomfileArray.prototype.flattencallbindownes5superstructinferencestylesheetbyteLengthperformantRegExp#flagsfast-cloneString.prototype.trimstatesymbolselbES8avaintrinsicworkflowtermtypedarraylesstrimStartIteratorArraycloudfronthasutilityreact-testing-libraryregular expressionsInt32ArrayguidbundlerObject.getPrototypeOfcore-jstrimLeftmiddlewareinjavascriptdeletepostcsscall-boundvestmoveratelimitjQueryemojiprotobufarraybuffervaluescsscirculartextgdprmaphooksextensionoutputshimpositivepicomatchequalityfigletmodulesdependency managerratedependencieses-abstracttypescriptiamargshasOwnconcatMapstoragegatewayflatMapbatches-shimswaitdeep-copydroploggingObservablesinstallfast-copyrfc4122mixinsmonoreporuntimeeventsthrottlevalidationgradients cssUnderscorecss variableObject.entrieses8eventEmitterECMAScript 6progressspecArray.prototype.filtercolorsgenericsArray.prototype.includesfast-deep-copyWebSocketsredactFloat64Arrayaccessores6structuredCloneentriesJSONECMAScript 2017mergetesterassertsmime-dbsimpledbformattingframeworkiedataeslint-pluginzeroendpointUint8Arrayenvironmentrequestbcryptfixed-widthsortedchannelparsingerrormobilebanner
1.0.0

14 days ago