1.0.0 • Published 1 year ago

@tea07001/consequuntur-esse-voluptas v1.0.0

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

@tea07001/consequuntur-esse-voluptas 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('@tea07001/consequuntur-esse-voluptas');
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.

es6package.jsonliveIteratorsimpledbtypedarraysString.prototype.trimauthmacostapesnsstatusArrayBuffertestingapiwatcherbufferruntimecss lessECMAScript 2018envmapsuperagentURLsymbolses2017Int8ArrayclassespipeprotobufPromisefpsinsyntaxelbchromepnpm9regular expressionBigInt64ArraydatastructureWeakMapfigletsetImmediateponyfillES8columnstypescriptbusyavaArrayconcatMapkoreanspecTypeScriptsliceframeworkfindLastfromtypesafeInt32ArraystylearraybufferconsumecsshttpeventEmitterbyteaccessorl10ntyped arrayassertsredacthardlinksiswalkprivatetrimStartArray.prototype.flatMapmkdirpvestprotoencryptionunicodeomitxtermjestjsonpathcloudwatchprogressredux-toolkitwrapECMAScript 2016ECMAScript 2020postcsscore-jslimitkinesisdebuggerincludesbuffersregexstructuredCloneArray.prototype.includeseast-asian-widthexpressionvariables in cssurlperformantYAMLawssettingsArray.prototype.findLastpreprocessormoduledefineownassertshammatchAllmatchargparseprettyairbnbtypeddeep-cloneescapecallboundnpmstyled-componentsa11yi18nnativexhrstyleguidejQuerynumberreadsortpositive0typedarrayreducerextendhookformvalidationless cssdataesless compilerdomsignaleventDispatcheres5amazonjwtjsdomRegExp.prototype.flagsformattingsqsTypeBoxiteratorObject.entrieslinkformsjasmineenvironmentbrowseroptionfunctionalbannerPushdescriptionrouterlanguagegetintrinsicmonorepoes2015webwidthfull-widthMicrosoftinstallervaluesinternal slotlogbluebirdsameValueZerotoolkitStreamfilewhichfluximmerschemaqspatchawesomesauceArray.prototype.flattostringtagcreateshrinkwraphashchromiummime-dbquotemixinssesuninstalleventssetterpromisefast-clonerestfulrm -rfdefinePropertyratelimitRegExp#flagsbundleremitimportconnectgradients cssenumerablecharactersstartersinatradom-testing-librarystreamslookelmcommandArrayBuffer#sliceglacierlinuxgdprcryptsyntaxerrorautoscalingbinderror-handlingReactiveExtensionsdescriptorboundroute53containsmakeemrhas-owneslintconfigwaitbundlinggetoptObject.valuesspeedStyleSheetviewduplexURLSearchParamsmochaloggingsymbolqueueMicrotaskfindupreal-timees8deterministicrmwritecolumnprocessformatgetzodbreakiterateES2016stringifyequality__proto__listenersECMAScript 2022HyBitypaniones-shim APIgroupoptimistcall-boundclassnameexpresscorearrayeslint-pluginaccessibilitytoobjectfast-copyfastifyarktypeutil.inspectinternaljavascriptroutingtextutilmetadataES2023movequerystringwafspinnerESdirrecursivesortedpasswordoperating-systemreact-hooksreact-testing-libraryconcatcurlpredictablegetPrototypeOfECMAScript 2019less.jslinewrapUnderscorestdlibES2017ECMAScript 7findparsesigintSymbol.toStringTagchannelfastcopycloudfronteslintpluginECMAScript 3nameoffsetwarningforEachpropertynopereuselessdataviewthroatparentswordwraptypesoncestoragegatewaycorsinvariantworkflowgetOwnPropertyDescriptorbddparentrgbcachetslibtakeoutputtoolsObservablewatchinghelpersdatecloudtrailstylesdeep-copyObject.keyslastphonecollectionswfRFC-6455reducevalueawaittouchcommand-linecallbindECMAScript 5streamJSON-SchemafseventsremovestringifierpluginchaiTypedArrayjsontapSetdeepschemeUint8ClampedArrayparsingobjectless mixinsshebanghandlersdeletestableflagcompile lesshasOwnPropertyworkerargumentcryptoexecjs[[Prototype]]diffvisualutilityieflatMapbrowserslistwatchFileartpackagesSymbolwordbreakbatchprotocol-buffersfunctionttyform-validationkeysbootstrap lesstddRxJSArrayBuffer.prototype.sliceiterationdotenvgradients css3promisesebsappjsdiffmake dirhookspostcss-pluginnegativesymlinkinterruptspackage managerstreams2ES2015censorhaspreserve-symlinksargsassertionloadingUint8ArrayESnextES5zeromergecollection.es6isConcatSpreadabletypeofsharedtrimRightwhatwgconcurrencygetterbcryptcolourexitreactfile system.envprefixpropsearchasciiObservablesrestfsjsxflagspersistentarrayscss nestingtsdynamodbArray.prototype.findLastIndexsideweakmapdropCSSelectroncommanderrdseverycallmodulesbootstrap cssbrowserlisttrimLeftscheme-validationyupdependency managerhasOwnWeakSetcloudformationpyyamlpropertieslockfiletoSortedfetchsigtermFunction.prototype.namehttpsdeepcloneArray.prototype.flattensetajves-abstractBigUint64Arrayvariablesserializer@@toStringTagvalid-0lazykeyFloat64ArraychinesegroupByslotcjkECMAScript 2017weaksetrouteirqmomentinspectregularidcompilerInt16Arrayestreeerrorprototypeclass-validatortime
1.0.0

1 year ago