1.0.5 • Published 6 days ago

@teamteanpm2024/sunt-culpa-quae v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

@teamteanpm2024/sunt-culpa-quae Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS SharedArrayBuffer? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var assert = require('assert');
var isSharedArrayBuffer = require('@teamteanpm2024/sunt-culpa-quae');

assert(!isSharedArrayBuffer(function () {}));
assert(!isSharedArrayBuffer(null));
assert(!isSharedArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isSharedArrayBuffer(Symbol('foo')));
assert(!isSharedArrayBuffer(1n));
assert(!isSharedArrayBuffer(Object(1n)));

assert(!isSharedArrayBuffer(new Set()));
assert(!isSharedArrayBuffer(new WeakSet()));
assert(!isSharedArrayBuffer(new Map()));
assert(!isSharedArrayBuffer(new WeakMap()));
assert(!isSharedArrayBuffer(new WeakRef({})));
assert(!isSharedArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isSharedArrayBuffer(new ArrayBuffer()));

assert(isSharedArrayBuffer(new SharedArrayBuffer()));

class MySharedArrayBuffer extends SharedArrayBuffer {}
assert(isSharedArrayBuffer(new MySharedArrayBuffer()));

Tests

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

testingpropinputloadbalancingflatPromisefileprototypeprivateeast-asian-widthlockfilebalancedsuperagentsetImmediateextraObject.ispackagesort_.extenditerateform-validationpipeiefpes-shim APIoncecheckbootstrap cssObject.fromEntriesjson-schema-validationstructuredCloneoperating-systemfind-upavanativepushwaitlengthchromiumpathcsshttpECMAScript 2015cryptpropertydateRegExp#flagsprettyArray.prototype.findLastownuser-streamslesscsstypedarrayestreestyleguidewhatwgsymboltoArrayfiltertype@@toStringTagpreserve-symlinksincludestextworkflowgesturesObject.assignharmonyrobustArrayBufferschemeinterruptsfindLastcensoroptimistcallback256RxaccessorsetPrototypeOfl10nimportSymbol.toStringTagtypedtostringtagamazondebuggersymbolsexpressfixed-widthescommanderarraysintrinsicpositiveES2021bddpostcss-pluginECMAScript 2017less.jscollection.es6mimeresolvedragfunctionsWeakMapsyntaxWebSocketsargslookvaluereducerObservableses7browserlisti18nconcurrencyec23dless compilerglaciersesrecursivecolourconstassertsStyleSheetFloat64Arrayless mixinsECMAScript 6negative zerocircularcode pointsforEachCSSflagsvalidnested cssArray.prototype.flattenenderargvasyncjsxnoperedactrfc4122symlinkbufferscharactercloudtrailes2016stylingArray.prototype.findLastIndexenvironmentdroptaskzodObject.definePropertyformattrimRightpreprocessorlintArray.prototype.filterfseventsfull-widthes2017reactpackage managergetoptbootstrap lessObservablespeedpropertiesendpointwatchingString.prototype.trimYAMLObject.valuescloudsearchoffsetguidtoSortedobjautoscalingES5consolesettingsframer6to5spinnersFloat32ArrayvpcecmascriptJSONObjectaccessibilitybundlerTypedArrayiterationsetmkdirptranspilerxssdebugStreamcompile lessmatchesURLawspnpm9listeners__proto__javascripthigher-orderchanneldeep-clonefastifyencryptionkeyscopyreusefromFunction.prototype.nameReactiveExtensionsmodulewebtacitjapaneseextendloggingdompasswordfantasy-landindicatorshebangautoprefixerES2022fastdataviewWeakSettoolkitrapidemrInt8Arraybundlingxtermperformanceprogressemites2015moveprocesseslintconfigenvhashomitregular expressionsregular expressionminimalserializationarktypefast-deep-clonehookformjQueryviewwatcherastcomparecodesajaxpoint-freeweakmaplrubabelsigtermawesomesaucereduxmetadatacloudformationtypanionmodulessharedbyteLengthcoloragentwidth0getterslotflatMapefficientconcatMapgenericsextensionSymbolupletcolumnshooksglobinspectuuidirqzerohttpsexit-codeinstalljsdomtypescriptECMAScript 2016keyratelimiteventscss-in-jsslicelessdotenvcontainsstringifyWebSocketSetimportexporthandlerscollectionswfCSSStyleDeclarationinternal slotdataReflect.getPrototypeOfbrowserslistcompilerrandomformattingtypeerrorstringifiervalidatestreamstddstatusbcryptstylesheetlasttypesregexvariables in cssECMAScript 2023validationsqswordbreakarrayenumerabletapenpmmime-dbtrimStartwritablecommand-lineTypeBoxcss lesscallpostcssoutputtypeofsanitizegradients css3throttleclonedeleteclidependency managera11yutilworkerjesttestconsumestreams2ajvserializewarninggradients csscommandmkdirsfsqueueMicrotaskIteratorStreamsArrayBuffer.prototype.slicejsdiffes2018someremovetoobjectObject.entriespopmotionjsonpathstringsortedcharactersES2020fastcopyinvalidatorsyntaxerrordependenciesUint16Arrayshames8classnameformutilitiesECMAScript 2022testerless csseslint-plugincolumnjson-schemaparentperformantelbmatchstoragegatewayassertionquerystringcallbindrateBigInt64ArrayboundECMAScript 2021hasOwncreatesigintwalkingroute53findLastIndexinferencepurexhruninstalltslibes-shims-0react-hookskinesisreadableframeworkexitreact poselinuxtypesafejoicloudwatchfolderwgetUint32ArrayinternalcryptoanimationbyteOffsettrimLeftMicrosoftschemawaflook-upmapgetPrototypeOfwalklinkemojifetchpolyfillprunefindcall-boundebslogcore-jsHyBiES6escapeelasticachelimitedruntimereal-timeassignserializernegativeECMAScript 5merge.envdom-testing-librarypyyamlhasOwnPropertyentriesES2018monoreposimpledbArray.prototype.containsmimetypesgetintrinsicargumentRegExp.prototype.flagsimmutablereact animationes6BigUint64Arraycss nestingURLSearchParamsTypeScriptregularcomputed-typeswrapchromeconfigurabletsnamefastcloneexecclass-validatorutilses-abstractgroupwaapiES3es5batchString.prototype.matchAlllimithasponyfillkarmawriteflagconcatsignalreact-hook-formfullwidthwindowsObject.getPrototypeOfmulti-packagefindupclassnamesbreaksymlinksstatelessutil.inspectfigletlinewrapreducequoteECMAScript 3errorscheme-validationapipersistentdayjssuperstructoptiondescriptorsauthenticationObject.keysES2019jscoredirectorysidesameValueZeroconnectarraybufferinvariantutilityhelpersESnextwatchspinnerrangeerrorbusypatchdeep-copybannerrmqueueqsjsonposethreereact-testing-libraryrgbdataViewES2023streamworkspace:*visualAsyncIteratorasciiESmiddlewarefunctionsanitizationMapsignalsloggertraversetoStringTagdatastructurecss variablebeanstalkiteratorsequenceelectrontypedarraysmomentplugincolorspackage.jsonmixinsArray.prototype.flatECMAScript 2020watchFileReactiveXtrimairbnbstylemake dirchinesetelephoneimmergetOwnPropertyDescriptortranspileiamfunctionaleventEmitterbrowsereslintbufferUint8ClampedArrayfile systemvaropenclassesArrayBuffer#sliceartloadingoptimizerconfigprivate datashrinkwrapRxJSidleArray.prototype.includesPushdescriptorvariableslazyES2016rm -frstartercallboundnamesrmdirstyled-componentsredux-toolkitprefixreadprotobufsnsio-tsmapreducedifffast-copymochaargparseerror-handlingUnderscoredeepcopydefinecoercibleRFC-6455fast-deep-copy$.extendflattenECMAScript 2019byteauthparserequestrdssearchArraymakethroatvaluesjasmineunicodeexpressionformsisConcatSpreadableyamlvestArray.prototype.flatMaptyped arrayisreadablestreambabel-coreES2017protocol-buffersdescriptionparsershellfps
1.0.5

6 days ago

1.0.4

7 days ago

1.0.3

8 days ago

1.0.2

9 days ago

1.0.1

10 days ago

1.0.0

11 days ago