2.6.74 • Published 2 years ago

@hishprorg/atque-error v2.6.74

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.6.73

2 years ago

2.6.72

2 years ago

2.6.71

2 years ago

2.6.70

2 years ago

2.6.69

2 years ago

2.6.68

2 years ago

2.6.67

2 years ago

2.5.67

2 years ago

2.5.66

2 years ago

2.5.65

2 years ago

2.5.64

2 years ago

2.4.64

2 years ago

2.4.63

2 years ago

2.4.62

2 years ago

2.4.61

2 years ago

2.4.60

2 years ago

2.4.59

2 years ago

2.3.59

2 years ago

2.3.58

2 years ago

2.3.57

2 years ago

2.3.56

2 years ago

2.3.55

2 years ago

2.3.54

2 years ago

2.3.53

2 years ago

2.3.52

2 years ago

2.3.51

2 years ago

2.3.50

2 years ago

2.2.50

2 years ago

2.2.49

2 years ago

2.2.48

2 years ago

2.2.47

2 years ago

2.2.46

2 years ago

2.2.45

2 years ago

2.2.44

2 years ago

2.2.43

2 years ago

2.2.42

2 years ago

2.2.41

2 years ago

2.2.40

2 years ago

2.2.39

2 years ago

2.2.38

2 years ago

2.2.37

2 years ago

2.2.36

2 years ago

2.2.35

2 years ago

2.2.34

2 years ago

2.2.33

2 years ago

2.2.32

2 years ago

2.2.31

2 years ago

2.2.30

2 years ago

2.2.29

2 years ago

2.2.28

2 years ago

2.2.27

2 years ago

2.2.26

2 years ago

2.2.25

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago