1.0.0 • Published 22 days ago

@ptkhanh94npm/labore-minus-temporibus v1.0.0

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

@ptkhanh94npm/labore-minus-temporibus Version Badge

github actions coverage License Downloads

npm badge

Define a data property on an object. Will fall back to assignment in an engine without descriptors.

The three non* argument can also be passed null, which will use the existing state if available.

The loose argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.

Usage

var defineDataProperty = require('@ptkhanh94npm/labore-minus-temporibus');
var assert = require('assert');

var obj = {};
defineDataProperty(obj, 'key', 'value');
defineDataProperty(
	obj,
	'key2',
	'value',
	true, // nonEnumerable, optional
	false, // nonWritable, optional
	true, // nonConfigurable, optional
	false // loose, optional
);

assert.deepEqual(
	Object.getOwnPropertyDescriptors(obj),
	{
		key: {
			configurable: true,
			enumerable: true,
			value: 'value',
			writable: true,
		},
		key2: {
			configurable: false,
			enumerable: false,
			value: 'value',
			writable: true,
		},
	}
);
signalglobcss lessio-tsfastifyshebangspeccall-boundstylesheetstyled-componentsserializecss-in-jsformatArrayBuffer.prototype.slicetypedarrayuninstalluuidpreprocessorduplexbootstrap lesspackagesjasminewaitobjectWebSocketsutilityECMAScript 5whichIteratorECMAScript 2020[[Prototype]]cloudformationdeepclonetddcsssuperagentprefixeventEmitterdebugreadablestreamfindLastIndexequalityextracacheESmime-dblinewrapES2020matchAllmkdirrobustUint32Arrayvalidatecodesfseventsupworkflowratelimititeratestablescheme-validationObject.entrieseslintconfigoperating-systemsymbolspostcss-pluginESnexttslibstartergroupeslintissyntaxerrorcommandercliutilitiesponyfilltrimStartrouterArrayBuffer#sliceBigUint64ArrayperformantmkdirpbreakkinesiswalkingFloat64Arrayarraysgetoptsyntaxspeedbrowsercoreawesomesaucewatchinnested cssajaxtermreplayreducercorsjsonpatheventDispatchercode pointsYAMLjspasswordfull-widthdom-testing-libraryguidcommandArraysymbolapiargvassertsdebuggercloudwatchnegativesettingsURLdayjsECMAScript 2016rm -rfformairbnbnodejscore-jsES2017descriptormakeparsingmovevariables in cssarraybufferunicodeserializationMicrosoftdeepconsumejavascriptweakmapnpmfast-deep-copyECMAScript 2019flatcolumnObservabletaskString.prototype.matchAllswfttyyupprotoPushansinameses2017ratewhatwgwatcherArray.prototype.findLastIndexoptimizerformattingtypescriptquote0restfulfilterInt32Arrayperformanceglobals_.extendtoSortedwraptoStringTagfindLastwatchingframeworkrfc4122equalmkdirselbprivate dataWeakSetform-validationdotenvbyteOffsetdynamodbECMAScript 2015resolveurlhascharactersES5util.inspectes2015asserttextcollectionregular expressionslimitedclasseslengthfiglethelperscall-bindbootstrap csscryptoECMAScript 2023enderprivatermdir-0ownflagshandlersmodulergbECMAScript 7awsopenRegExp.prototype.flagsstylecreateencryptionassignes5callboundinstallinternalbundlerfetchruntimemake dirES2016listenersviewconfiges8multi-packageES2015snsmimetypesbytechromecensoridmapreduceglobaltoolkitinputtrimEndlastReactiveExtensionsstringgetPrototypeOfec2elmworkspace:*ES2021toobjectes-abstracttc39simpledberrorgetOwnPropertyDescriptorphoneemojibeanstalkpersistentimportexportgdprdiffObject.fromEntriesmiddlewaresidebannerloadbalancingsameValueZero__proto__sharedarraybuffersettergraphqlregulartimedependency managerarraytapeoffsettoucheverysortPromisees2018channeljwtfilebddregexpmacosreal-timeReactiveXes-shimsassertionsuperstructoptionWeakMapeast-asian-widthcopyshrinkwrapUint8ClampedArrayfindfixed-widthbrowserslistbindaccessibilitythrottlesigintless cssdeep-copycloudtrailwritetrimLeftStreamES2022randomzodelectronbound$.extendWebSocketslicepromiseslookargparseutilvaluearttypanionqueueMicrotaskstyleguidenamelanguagehotschemecjkdataviewtraverseObject.keyspackageamazonsomeentriessinatravariablesArray.prototype.findLastcontainsvestexit-codewordbreakwafsqsjapanesecallbindsymlinkswindowsSetreducetestersetImmediatejsdiffeslintpluginescapebrowserlistECMAScript 2017protobufhardlinksFunction.prototype.nameUnderscorejshintebssesstylescollection.es6karmaes2016metadataArray.prototype.flattentoolsstylingprettyaccessorwordwrapprototypehttpstoArrayformszeroArrayBufferinvarianttsspinnerstakegetterproxyxhrkeysterminalthroatgetinspectmatches@@toStringTages7parentcharacterpolyfillxtermextendflagoncereduximmutablesignalsrm -frieimportroute53typeerrorObject.getPrototypeOfES2023propertiesisConcatSpreadablelibphonenumberastflatMapautoscalingfolderajvrequiredataendpointreact-hook-formstreamjsdomstoragegatewaycss variablepipeenvcompareshimidentifiersstreamspropmergeRFC-6455iamdefineeventscolorsECMAScript 2021Array.prototype.flatcircularpackage.jsonECMAScript 2022removeprotocol-buffersdefinePropertyECMAScript 3serializervaluesclientdeleteless mixinsreusel10ntrimES3deep-clonegetintrinsicdatastructurelinkwalkcompilercolorvarsAsyncIteratorclass-validatorexitrdsconfigurablereadablepositivestatelesslockfileexeci18njsonSymbolloadingECMAScript 6sortedjoiURLSearchParamscompile lesslivefluxTypeScriptECMAScript 2018numberCSSStyleDeclarationstringifyvpcbyteLengthCSSstructuredClonechromiumpathnodeHyBifullmimeexpressionhas-ownStyleSheetappdropgenericserror-handlingirqgradients cssarktypefunctionescallbacks3.envfromfunctionshasOwnMapglacierconcatincludesjestemitqscurlpromisetestingredactenvironmentsrequestshamInt8ArraysetmomentextensioninferenceObservablesvalidminimalES2019Array.prototype.flatMaplrufast-deep-clonecoloursequencetypedarraysES7parseroutputlinuxlogreadidleexpresssharedstdlibshellnegative zerochaiimmerfpsweaksetmochafastTypedArrayconcurrencyparentsdataViewtypeofrecursivetestlook-upnativemapRegExp#flagsbusyRxmixinsreactpredictablefile systemrestindicatoriterationtrimRightwgetcomputed-typesless.jsdescriptorsES8koreantyped arrayless compilermatchbcryptObject.ispluginObject.valueskeyprogressfind-uphookformfastcopyschemajQuerybluebirdfsReflect.getPrototypeOfchineseawaitpackage managerhigher-orderdeepcopySymbol.toStringTagauthquerylesscssdateautoprefixermrusearchstringifiercoercibleeslint-pluginlessloggercommand-linetypedeterministicObjectasciiwatchFilebundlingdirbufferspicomatchStreamsgroupByslotsafesymlinkES2018lintrapidsigtermoptimistfast-copyObject.definePropertyapolloestreefullwidthintrinsicforEachqueueregexstatewidthlimitpreserve-symlinksparsepushargumentwarninghasOwnPropertytypesafestreams2bufferFloat32ArraytelephoneUint16ArraysetPrototypeOfdomtapreact-hooksObject.assignenumerabledirectorybatchyamlpostcssString.prototype.trimprunecloudfrontnopeefficientredux-toolkitelasticacheflattenpropertyauthenticationinstallerinternal slotlazyArray.prototype.filterhooksArray.prototype.containsagentconsoleobjcryptwritablehttpJSONpyyamlregular expressionconcatMapfindupmodulesBigInt64Arraymonorepoconnectworker
1.0.0

22 days ago