1.0.4 • Published 1 year ago

@juigorg/eveniet-asperiores v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@juigorg/eveniet-asperiores 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('@juigorg/eveniet-asperiores');

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('@juigorg/eveniet-asperiores/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

spawntrimEndcolumnArrayBuffer.prototype.sliceStreamsbrowsergenericstypedarrayslicemonorepoproxybinarystyleguidegetterbyteLengthqsxhrrdsismodulescloudformationpackage managerupnodejserrorSetwritablecollectionlockfileTypedArraycurltssharedlocalimmutableFloat64Arrayacornform-validationES2015pyyamldescriptorschemeimportgesturesfullwidthnodeeslintconfigfsoptimistsymlinksformattingtransformgetintrinsicesinstrumentationpropertyforEach256cacheprettymergevisualparserm -rfstreamssqsgetdropmanipulationidentifiersaccessorES2017key parprogressstablepackageserverpureECMAScript 5flagsdebuggerjsxpruneemrreal-timeworkspace:*charactersclass-validatorletobjlanguageiteratornativeRxconsumeeslint-plugintranspilerzerosameValueZerotslibconcatdebugphoneregular-expressionreducetrimponyfillpicomatchdirectoryRegExp#flagsloadingspringviewkarmadeepclonetostringtagjQueryflatwhichvalidationhtmloutputhelperfullassertsWeakMapsyntaxprotobrowserlistuser-streamsreact-hook-formflattenstructuredCloneYAMLECMAScript 2022asciiCSSStyleDeclarationthreeES7seskinesisfigletlengthposeomitECMAScript 2016bddprototyperfc4122onceArray.prototype.filterArray.prototype.flatMapworkeraccessibilitytestbusyslotmatchdynamodbsuperstructidleenvironmentsperformanceagentrm -frsidereactwebdefinefunctionsimmeres-shim APIutilECMAScript 2018groupreact animationhigher-orderawsstyled-componentsspecUint32Arrayprivate datapnpm9polyfillString.prototype.matchAllECMAScript 2023requestprotocol-bufferselectroncoreyupsnsloggingastbinatomclassesECMAScript 33dES3postcss-pluginJSON-SchemaglobaleventsSymbol.toStringTagfindLaststreamfixed-widthfast-copyhaswalksharedarraybuffertimefast-clonewarningeslintObject.assigncoercibleargumentloggerArray.prototype.flattacitregular expressionssetterartestreecallwalkingtypanionfpsservicehandlerquerylook-0utilitiesjesttoSortedboundsimpledbterminaltrimStarteslintpluginbundlerforklistenersmapreducehasOwnarraybufferfunction.lengthutilssymbolReflect.getPrototypeOfclassnameECMAScript 2021ebsreversedbinariesemojiStreamutilityreverseconcatMapmkdirpcallbindcolourconfiglogArray.prototype.findLastprefixparserprivateavaInt16Arrayes2015toStringTagarraykoreanjapaneseBigInt64ArrayhttpsObject.getPrototypeOftypeindicatormatchessimple cachehas-ownformsgetOwnPropertyDescriptorflagsetImmediateworkflowrobustfetchserializationmruequalitydirrapidlibphonenumbercall-bindgetoptroutechromiumuninstallansicall-boundmake dirtakedataeffect-tsswfframeworkfoldershimSymbolES5WebSocketslrudeep-copyreadablestreamruntimeeventEmitterMapwriteObjecthelperschannelgdprlocationrecursive@@toStringTagcolumnstranspilegraphqlcollection.es6arraysassignsource mapmoverouterwaapibyteOffsetInt32ArrayqueueMicrotasktelephonesymbolspackagesxtermenvironmentglobalsidroutingPushrgbwidthparentInt8Arrayfindupescaperedactcode pointstapeexecfileamazonwgetargvcreatesinatracssvesttc39rmdirUnderscoredomWebSocketpinodeepcopyTypeScriptURLes5react poseflatMapvaluesconfigurableresolveenumerableexeccore-jscss-in-jsES2018__proto__full-widthfindLastIndexbrowserslistvalidateformairbnbjsonbeanstalksyntaxerrorloadbalancingpatchcurrieddataviewURLSearchParamsgroupBypoint-freecryptoappserializecommandertypescriptcircularReactiveXbindtrimLeftownvarsESnextanimationArrayBuffer#sliceinputfile systemstylinginspectdom-testing-library.gitignorerequireunicodeWeakSetES2023compareRFC-6455ObservableIteratorharmonygetPrototypeOftesterpropertieskeyistanbultermnpmignoresetvalueexecutesearchUint8ClampedArrayexpressiones6find-upnegative zerostoragegatewaysetPrototypeOfpopmotionfastlintes7reworkreadzxsafetyped arrayes2017iterateStyleSheetasyncprocessio-tschildpreprocessorfastifynpm
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago