1.0.0 • Published 1 year ago

@lambrioanpm/labore-eos-libero v1.0.0

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

@lambrioanpm/labore-eos-libero 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('@lambrioanpm/labore-eos-libero');
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,
		},
	}
);
mime-dbstarteransiwatchingchaicloudfrontES2022groupBya11ynpmwarningcode pointsinstallmkdirdropdescriptorswatchsetthroatjwttypesoutputresolveenvhashcolourchromiumgetterBigInt64Arraylook-upcolumnstylekinesisinternaldatefindES2019efficientcore-jsReactiveExtensionsredux-toolkitshrinkwrapes2018fastclonenopeawaitfile systemxhrperformanceparentsuperagenthardlinksmappropertiestc39Uint32Arrayi18nquotewhatwghas-owncachelockfiledynamodbasyncenumerablebcryptInt8Arraykoreanes2017propfunctionpolyfillinspectcss-in-jscallcurlObject.isupjoigetintrinsicvalidationObject.definePropertytraversejapaneseendpointfunctionsbootstrap cssObjectreal-timecharactergdpres5testio-tsapideletevisualmixinsecmascriptprotoAsyncIteratorECMAScript 2016ES2020rdswritablehooksworkerunicodeinvariantredirectfluxTypeScriptclientesless.jsbreaksyntaxobjttyaccessoroptimisteventEmittergroupES2017sequenceESnextpredictableutil.inspectshimcorematchAllrm -rfelmeslintrgbWebSocketrouteArrayBuffer.prototype.slicetermboundprivate dataBigUint64ArrayregularmonorepodatastructuredirequaltypescriptqueueWebSocketsprotocol-bufferswaitreadablestreamUint8ClampedArraylookweaksetsqstypedswflanguagerfc4122sesiterationwgetsortpatchnativeserializefpsglacierECMAScript 2018tapeArray.prototype.flattenUint16Arrayinternal slotoptimizerintrinsicsuperstructworkspace:*styles.envpostcss-pluginauthmatchesdefinerapidstreams2tsmkdirsemres2016scheme-validationdataViewstructuredClonefseslintconfigbusytrimLeftObject.assigncircularjsdiffcallbindclassnamenested cssarktypetypanionform-validationdiffdebuggerspecJSONfastcopyroutingarraystypedarraysprettycjkterminalsearchsymbolES6ajaxes8logcommandenvironmentguidprotobufes-shimsfullelbnegative zeroconcatflatMapiteratorpreserve-symlinksES2015es-shim APIES2023queryMicrosoftlinkbufferssyntaxerrordeep-copyescapelogginges7immerECMAScript 2023assertionhttpsparserbddreact-testing-libraryreadmakedeep-clonequeueMicrotaskweakmapchannelfigletsymbolscall-bounddotenves6package.jsontesterconsoleschemadescriptionES2021webexpressionCSStrimRightregular expressionstestingglobregexObservablesstringifierkeycorsminimalstyled-componentsconfigurablemrulintpruneextendES5stablebundleruninstallwrapinferencewatchFilestdlibjsonpathcloudwatchrangeerrorlistenersnameslibphonenumberES8String.prototype.matchAllclass-validatorpostcssconcurrencydependency managerinputfast-deep-copyrecursiveparentscensorspeedvaluereactlengthassertfast-deep-clone_.extendfixed-widthsettertrimEndclassesstateeventstoobjectroute53typesafecss lessbrowserslistYAMLargv[[Prototype]]argparseargsfunctionalWeakMapbootstrap lesswordbreaksnscharactersrmdirstreamssharedarraybuffermulti-packageArray.prototype.flatMapdebugfastifyloadbalancingESestreetostringtagimportexportvalidcontainsbannerObject.entriesjavascriptgetdom-testing-libraryshellcopyjasminelimitedprogressES7computed-typesInt16ArraytoArrayjQueryconfigpersistentautoprefixermodulesencryptionratelimitloadingcallbackcompilermake dirless mixinsbrowserSetES2018storagegatewaypromiseremovejsxless compilertoSortedreducersortedsetImmediateRxender__proto__lrumochawordwrapReactiveXschemefullwidthstreamartregular expressionspinneromitarraybufferrmwatcherbyteObject.getPrototypeOfvestECMAScript 7stringelectroncommand-linereplaycryptoECMAScript 5indicatorvariables in cssxtermauthenticationpreprocessorfull-widthbrowserlisttslibcssgradients cssregexphttptddbufferfilerateTypeBoxsetPrototypeOfjsdomsharedlimitoptionkarmaviewtypegraphqlquerystringownsymlinkiamargumentnegativewhichforEachincludespackagereadablegradients css3clonetelephoneES2016moveReflect.getPrototypeOfequality$.extendECMAScript 2015extensionIteratorbatchCSSStyleDeclarationdataviewasciivariablesavaURLtypeerrorArrayRFC-6455Maplivecall-bindhotfiltertoolsserializationgetPrototypeOfstylingreact-hookscloudformationelasticachemimejsonautoscalingassignidcreateproxybundlingStyleSheetjsECMAScript 6somelesstoStringTagpluginstringifymiddlewareflagvalidateFloat32ArrayRxJSes2015dayjs256frameworkimportpushdeepcss variableoffsetreduceapollourlwalkiteratenameflatten-0Uint8ArrayshammatchvaluesString.prototype.trimHyBiSymbolamazonmergeeast-asian-widthastwafmetadatauuidpackagespipeinstallerArray.prototype.flatdirectorycompile lessfast-copymkdirpsettingshasOwnfind-upagentcss nestingstatelesshigher-orderloggerpasswordUnderscorepicomatchtasktoolkitES3Symbol.toStringTagcolumnsutileventDispatchermomentfoldereslint-pluginec2yupidledeepcopyECMAScript 2021fetchmimetypestouchlinewrapintrimStartairbnbdescriptorclassnames0emitFloat64ArrayconnectwidthfastrequestfindupchromedeterministicpositiveJSON-SchemathrottledependenciesconcatMapnodejssideprototypeInt32ArrayworkflowRegExp#flagsrm -frECMAScript 3zeroECMAScript 2022espreeObservablekeystyped arrayless csspromisesexecwalkingerrorbindreduxparsinghookformstyleguidestylesheetgetOwnPropertyDescriptorcloudsearchfindLastfast-clonecodeshasOwnPropertyObject.fromEntriesWeakSetcolorcollection.es6helpersexpressmapreduceruntimebeanstalkpropertycryptentriesdefinePropertybluebirdtrimwriteArray.prototype.findLastIndexrequireECMAScript 2019clicheckcoercibleutilityStreamsObject.valuesduplexdeepcloneawesomesauceObject.keysreact-hook-formbyteLengthArrayBuffercallboundprefixtakeimmutablelocationobjectECMAScript 2017symlinkssafeoncehasRegExp.prototype.flagsieaccessibilityformatfseventsflatnumberArray.prototype.findLastphoneURLSearchParamsArrayBuffer#sliceshebangStreamebses-abstractdomarrayspinnersArray.prototype.containsPushvpcawstypeofajvArray.prototype.includesrandomsameValueZerodataFunction.prototype.namefindLastIndexopenpnpm9formsmodulelesscssparseisjestcloudtraileslintplugins3slotTypedArraycollectionPromiseredactl10n@@toStringTagfromArray.prototype.filter
1.0.0

1 year ago