2.6.74 • Published 11 months ago

@hishprorg/atque-error v2.6.74

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@hishprorg/atque-error Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2017 spec-compliant Object.entries shim. Invoke its "shim" method to shim Object.entries if it is unavailable or noncompliant.

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

Most common usage:

var assert = require('assert');
var entries = require('@hishprorg/atque-error');

var obj = { a: 1, b: 2, c: 3 };
var expected = [['a', 1], ['b', 2], ['c', 3]];

if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
	// for environments with Symbol support
	var sym = Symbol();
	obj[sym] = 4;
	obj.d = sym;
	expected.push(['d', sym]);
}

assert.deepEqual(entries(obj), expected);

if (!Object.entries) {
	entries.shim();
}

assert.deepEqual(Object.entries(obj), expected);

Tests

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

AsyncIteratorformattinglintenvironmentsroutehttptestoptimizerECMAScript 2018definePropertyl10nvestcomputed-typesestreestateelmSystem.globalstylesheetutilletECMAScript 5StreamsworkerrgbzodpreprocessorString.prototype.matchAllbinarycss lessES2023promisehooksfront-endnegativedeepcopynopeparselengthenvironmentshimexpressionchromeec2regexpkoreanyamlbuffercssreducebrowserrequesttypeerrorbundlerglobal this valueown[[Prototype]]positivebabelsimpledbcloneenumerableES2019fluxECMAScript 2023keyloggerclass-validatorpyyamlauthenticationdependency managerfast-copyvalidshambcryptiefpimmerESnextsymbolses2016mrukeystakees8Array.prototype.findLastIndexcall-bindfindsequencesymlinksdeleteponyfillpasswordpushcalllinuxObject.entriesselfeast-asian-widthincludesspeedgradients cssnpmignoreUint16ArrayBigUint64ArrayiamformsArray.prototype.findLasteventDispatcherio-tstypanionfullwidthpruneroutingautoprefixercloudsearchdeepcloneimportexportcopyObject.definePropertynpmunicodebabel-coreSymbolspinnerssettingsformatperformantcloudformationfigletextendES3globalThischaicryptnativegetpackagesstylewaapitransportObject.assignbyteremoveMapworkspace:*fixed-widthsuperstructtoolscontainsecmascriptreducerpathspecprefixgraphqlcallbounddomcommand-line@@toStringTagfilterimportArrayBuffer#sliceiteratequoteenderlessObservablesreadableequalityeveryasciitimesesdataViewsignalbuffersentriesconsoleenvhigher-orderinternal slotBigInt64Arraytyped arrayhardlinksfpscolorsECMAScript 3RxmatchmapreducemoveprocesssortedlockfilerdsFunction.prototype.namegetOwnPropertyDescriptorwindownodemakeformresolvereadablestreamcollectiontypedes2017comparespawnregular-expressionprivateiterationyupsigintgenericsmobilematchesflattenarrayutilitiesfunctionalmapcompile lessinstallslicechildtypescriptObject.isbyteOffsetebsback-endslotgetterlocalStyleSheetreadECMAScript 6configurablematchAllstyleguideutilsviewelasticachewhatwgtranspilefastjsdiffcodesfast-cloneoperating-systemfunction.lengthECMAScripthookformsymboltermpostcss-pluginsnsajaxmkdirsreusecompilerFloat64ArrayArray.prototype.includesdeepfindLastIndexWebSocketsdynamodbnumberjsdomaccessorignoreless mixinsES2016javascriptoffsetstyled-componentsimmutableeslintconfigdataloggingjsxObject.keyshandlerstestingwgetmkdirmetadataanimationRFC-6455assertfsIteratorloadbalancingvarasterisksoutputmomentregexpreserve-symlinkssignedless cssfile systemauthcore-jszxgesturess3fastifyboundwhichexites2018touchcolorobjectsubprocesseventscharacterWeakSethandlera11ystringifyargvconsumeuser-streamscliharmonyhasprivate dataECMAScript 2020JSON-SchemaquerysortArraydescriptormergecoreprotobuffilestylespicomatchpurefastcopypostcssweaksetobjeventEmitter_.extendpopmotionfindLastrangeerroreslintpluginindicatorparserfantasy-landruntimeES2018global objectaccessibilityhelperUint8ArrayES2015regular expressionfunctioncloudwatchthreewriteawesomesaucechannelcryptoCSSStyleDeclarationstatusES2017ESinterruptsArrayBuffer.prototype.sliceterminalphonequeueMicrotaskelectronsetbannerInt8ArrayspinnerrecursiveglaciercommanderasyncsqssettergroupByininspectnegative zerobrowserslistcolumnglobalsshebangprettyfull-widtheshasOwnlocationjson-schema-validationastconstprotocol-bufferstypesafereactbinHyBisyntaxhttpsforkObject.fromEntriesspringcallbacksuperagentrobustcircularflatMapYAMLreact poseprogressfromstylingdescriptorspredictableforEachconfigserializationmodulesJSONwafwindowsrapidtacitdom-testing-libraryconcatwidthfastclonefullquerystringscheme-validationlastintrinsicbundlingjson-schema-validatortrimLeftjwtopensslsiderandomidleawsmonorepouploadtesterdependenciesPushvalidatordeep-copydirhashtypeofinputtoArrayUint32ArraywalkvalidateES2021eslintstoragegatewaymake dircurriedescapeglobgdprSymbol.toStringTagtypei18nexpressfetchstringES8getPrototypeOfUint8ClampedArrayeslint-pluginpnpm9ECMAScript 2019replayArray.prototype.filterttyredux-toolkitcoercible256valuereact animationcolumnserrores2015ES5TypeBoxoncedefineeffect-tsurlstreamcensorES7writablesymlinklazytextmkdirp.envprototypejshintapiinternallanguagecss nestingqueuesameValueZeroArray.prototype.flatMappolyfillArray.prototype.containsmanagerinferencemockingstringifierECMAScript 7somecurlworkflowObject.valuesprotobyteLengthagentextrasigtermjestsyntaxerrordataviewshellvaluesargumentreact-componentbusysharedpackage managerdirectoryTypedArraysetPrototypeOfuninstallarraybufferlistenersirqemrTypeScriptECMAScript 2017assertsvisualpoint-freeschemeweakmapfast-deep-copyStreamarktypeexecsignalsstructuredCloneRxJSclassnamenested csscertificatesredact0beanstalkECMAScript 2021sharedarraybufferswfpersistenttoSortedomitroute53autoscalingcall-boundtoobjectexecutetrimposeRegExp.prototype.flagsloading.gitignorejsInt16Arraytostringtag__proto__propertypluginargsamazonshrinkwraptypedarrayslogframerbinarieswarningflatredirectES2020ECMAScript 2016efficientes5URLassertionfunctionspropertiesoptimistcolourjapanesestarterdayjsMicrosoftdotenvtrimStartespreereact-hooksinstallergradients css3dropisConcatSpreadableajvregular$.extendtslibphonenumberbootstrap lessECMAScript 20153dvarsES6fnmatchWeakMaplinkschematc39utilityString.prototype.trimReactiveXcreateURLSearchParamsreal-timeqsexit-code-0UnderscoreWebSocketchromiumdeep-clonereact-testing-libraryes-shimsmulti-packagebrowserlistvariables in cssdateendpointhotansiserializercss-in-jsgetoptcloudfrontbdddragReactiveExtensionsgetintrinsicutil.inspectvalidationInt32Arraytranspilerpackage.jsonbindjsonschemalrujsonarraysjQueryclientidentifiersObservableclassnamesexecfileencryptionhelpersnodejsRegExp#flagslesscssmockReflect.getPrototypeOfartObject.getPrototypeOfArrayBuffercloudtrailserverapollodescriptionhas-owncommandes-shim APItelephonebootstrap csstypesECMAScript 2022propstableObjectFloat32Arrayclassesreduxpinocallbindes-abstractes6zerorequireflagsdatastructureiteratorcheckCSSservicerulesSetchineseform-validationoptionless.jsgitignorexhrArray.prototype.flatnamesconcatMaptraversetddmixinsdiffstreamsmodulePromiseairbnbwaitstatelessequaljson-schemaES2022kinesisglobalreact-hook-formhasOwnPropertysetImmediatetrimRightramdasafeless compilerassignmacosvariablesgroupnameproxycachelive
2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

11 months ago

2.5.67

11 months ago

2.5.66

11 months ago

2.5.65

11 months ago

2.5.64

11 months ago

2.4.64

11 months ago

2.4.63

11 months ago

2.4.62

11 months ago

2.4.61

12 months ago

2.4.60

12 months ago

2.4.59

12 months ago

2.3.59

12 months ago

2.3.58

12 months ago

2.3.57

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.3.54

12 months ago

2.3.53

12 months ago

2.3.52

12 months ago

2.3.51

12 months ago

2.3.50

12 months ago

2.2.50

12 months ago

2.2.49

12 months ago

2.2.48

12 months ago

2.2.47

12 months ago

2.2.46

12 months ago

2.2.45

12 months ago

2.2.44

12 months ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

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