1.0.0 • Published 1 year ago

@landmineaknpm2/aliquam-aliquid-error v1.0.0

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

@landmineaknpm2/aliquam-aliquid-error Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Truly private storage, akin to the JS spec’s concept of internal slots.

Uses a WeakMap when available; a Map when not; and a regular object in even older engines. Performance and garbage collection behavior will reflect the environment’s capabilities accordingly.

Example

var SLOT = require('@landmineaknpm2/aliquam-aliquid-error');
var assert = require('assert');

var o = {};

assert.throws(function () { SLOT.assert(o, 'foo'); });

assert.equal(SLOT.has(o, 'foo'), false);
assert.equal(SLOT.get(o, 'foo'), undefined);

SLOT.set(o, 'foo', 42);

assert.equal(SLOT.has(o, 'foo'), true);
assert.equal(SLOT.get(o, 'foo'), 42);

assert.doesNotThrow(function () { SLOT.assert(o, 'foo'); });

Tests

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

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

chromestructuredCloneutilitiesrequireiamliveES2019arraystouchcollectionasciitoolkitlesscsscss variablestrings3css lessless cssfilesharedarraybufferfull-widthconnectajvAsyncIteratorprocessenderartclassnameECMAScript 5$.extendpluginwafECMAScript 2019elasticachettybuffersmatchesfullwidthfetchweaksetcloudwatchreplayextraqueueinterruptsentries_.extendyuputilitySetdescriptorslastchannelinternal slotECMAScript 2018core-jsWeakSetjestratepersistentescapedescriptorrestcall-boundchromiumprotocol-buffersreact-testing-libraryfixed-widthrmdeep-cloneprivateshrinkwraplibphonenumberrandomstreamnopeReactiveXcommand-linecloudformationprettyfulliteratenegative zeroReflect.getPrototypeOfinargparsematchfast-cloneArray.prototype.findLastUint8ArrayschemeURLSearchParamsyamlwarningconfigurableUint32ArraypolyfillphoneemrsqsflattenhasOwncolorsfastifyclass-validatorl10nesObservableisECMAScript 2017bootstrap lesseast-asian-widthjQueryPromisetesterdeletejsdeepfolderdropworkflowlanguagetostringtagbootstrap csstraverseECMAScript 7concatansiarraybufferruntimemiddlewaremulti-packageinstalleslintpluginES2021namesreuseArrayformdatenodecloudfrontsigtermparentsroutepasswordmkdirsdefinePropertyFloat64Arrayexit-codeRxJSvalidationobjectelbsyntaxerrorpnpm9zeroString.prototype.trimJSON-Schemafilterstyled-componentsObject.fromEntriesreadableES2016symlinksroutingcorsbindcharactercallestreeuninstallregular expressionredux-toolkitclonegradients css3accessorlogconsoleless mixinswordbreakgetPrototypeOfassertsequalquotesymbolwatchFileRegExp#flagstaketelephonevpcBigUint64ArrayrangeerrorregextoSortedoptimistObject.keysconfigtoobjectexecmrunumberUnderscoreES2018ownrm -frredactdeterministicpushObject.definePropertySymbolTypeScripttc39slicelinewrapapirapiddirectoryquerystringES2022stylesbundlershebangthroatiewindowspropSymbol.toStringTaginternalhttpsqsio-tsiteratorstylingdirFloat32Arrayfast-deep-cloneapptrimjsonpathinvariantStreamgdprparsertapeless compilerbrowserlistfunctionsvesttrimLeftxtermfast-copyremovereact-hook-formextensiontyped arrayObject.entriesmixinsconcurrencyendpointUint16ArrayStyleSheethasmkdirpreal-timepredictablelimitedinspectglobcolumndeepcloneflatnegativeloggerhardlinksenvironmentYAMLtoArrayerror-handlingwatchingeventEmitterawaitrobustoutputgetmobileserializationtddinputzodrestfulclassesweakmapcall-bindtapECMAScript 2015ReactiveExtensionsdynamodbdotenvcircular__proto__[[Prototype]]descriptiondomtextinstallerhookformarktypecheckratelimitjsonmodulevaluesvisuali18nvaluedefinerm -rfes-abstractdeepcopyhas-ownspeedbddeslintconfigECMAScript 2020throttlehooksvalidmakeoptiondataviewserializerdebuggerassignuuidwebrgbdataintrinsicfindLastbyteHyBiObject.valuesjsdiffdatastructurestatuscensorproxypostcss-plugincodesES6autoscalingeslint-pluginRFC-6455lrujapaneselinuxstoragegatewayInt16Arrayschemaes-shimsoptimizermovenativehttpcjkreducerebspromisesregular expressionses5PushcryptlazycopysetPrototypeOfregularfunctionmimeArray.prototype.filterlessjwtObjectregexpbyteLengthpropertiesmatchAllArray.prototype.flatMapcallbindlook-upjsx0picomatchtypeerrorfind-upfromamazonasyncbluebirdInt32ArrayimportexportimmutableeventsMicrosoftloadbalancingspinnerrouterpreprocessor.envArrayBuffer.prototype.slicemacospromisearrayexpressonceextendcssES2020protowrapgetoptargvglacierobjCSSsimpledbec2compile lesscode pointsreadablestreamtestingTypedArraycloudsearches7private datatoStringTaggetOwnPropertyDescriptorastfunctionalidlecurlECMAScript 6karmaoffsetcoerciblepreserve-symlinksencryptionshimflatMapcss-in-jsmapreducefastes2017syntaxfstimeminimaldebuggroupauthnameES2015gradients csswordwrapMapflagdependencieslinkcryptotypesuperstructshamwaitcompilersearchisConcatSpreadablebusycomputed-typesopentypedarrayes8pipestyleeslintenumerablepostcssTypeBoxautoprefixertermelectronform-validationsafe256errormoduleswidthoperating-systemprunestarterrmdirreact-hookspositivevalidateresolveframeworkWeakMapreduxcomparehotES8browserbufferpackagesmomentutil.inspectmimetypesgettertypanioncallbackmochajavascriptnpmrfc4122forEachecmascriptfastcopysymlinklengthsinatracharactersECMAScript 2022findupvariables in cssrequestguidargumentRxes2018Observablesstringifyparseindicatorchaiworkspace:*deep-copyECMAScript 2023mime-dbconsumeelmhigher-orderdataViewjasmineESbreaktypesafeviewtypescriptefficientexpressiontypedarraysArrayBufferemitless.jses2015nodejsloggingsetImmediateimmersequenceprefixwgetkinesischinesesomeparsingfindLastIndexcolourtslibfindspecmake dircreatevariablesxhrawsclassnamescss nestingArray.prototype.includesupprotobufWebSocketbcryptpropertyformattingbundlingwatchbannershellstyleguidewritablefluxstdliblintBigInt64ArrayduplexworkerES2017boundrecursivegroupByequalityeveryhasOwnPropertyES3corefseventsincludessettingsstatelessdayjscommanderObject.ises6columnsiterationflagsfast-deep-copybyteOffsetstylesheetidreduceArray.prototype.containsa11yassertionObject.getPrototypeOflimitcloudtrailECMAScript 2021callboundkeyssesjsdom@@toStringTagsidesharedgenericsswfcommandFunction.prototype.nameconcatMapWebSocketsformsawesomesauceenvwhatwgES2023dom-testing-librarysameValueZerofpsstringifierIterator-0Array.prototype.flatArray.prototype.flattenaccessibilitytrimStartroute53symbolsESnextArray.prototype.findLastIndexJSONtypescolorajaximportpathbatchformates-shim APItypeddiffECMAScript 3ponyfillclipyyamlStreamsinferenceRegExp.prototype.flagstestargsairbnb
1.0.0

1 year ago