5.10.118 • Published 10 months ago

@kollorg/sunt-qui-facilis v5.10.118

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@kollorg/sunt-qui-facilis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

Example

var mockProperty = require('@kollorg/sunt-qui-facilis');
var assert = require('assert');

var i = 0;
var object = {
	a: 1,
	get b() {
		i += 1;
		return 'b ' + i;
	}
};

assert.equal(object.a, 1);
assert.equal(object.b, 'b 1');
assert.equal(object.b, 'b 2');

var restoreA = mockProperty(object, 'a', { 'delete': true });
assert.equal('a' in object, false);

var restoreB = mockProperty(object, 'b', { value: 42 });
assert.equal(object.b, 42);

restoreA();
assert.equal('a' in object, true);

restoreB();
assert.equal(object.b, 'b 3');

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.

emojijsonECMAScript 2022Object.fromEntriescharactersprefixcolorsRxtoucheventsimmutablebeanstalkbyteLengthpolyfillasyncamazoniterateenumerablenpmines5handlersFloat32Arrayerror-handlingAsyncIteratordircachefindLastIndexInt16ArraygetES3throttlereaderrorhigher-orderrequiredatastructureinspectwordwrapes-shimsa11ybindbootstrap lessawsObservableimportexportspinnersameValueZeromobilepredictablecodesregular expression_.extendObject.keysbuffersmkdirterminalgetPrototypeOfECMAScript 2016stabledefineremoverm -frtyped arrayUnderscoreassertsfast-cloneexpressReactiveXPromiseweaksetrm -rfdeterministicelmformatdependenciesrestfulautoprefixerlivethroattostringtagreducercomputed-typeswatchFileWebSocketargsbyteOffsetCSScolorjavascriptform-validationincludesreadableio-tsargumentshelltoStringTagcloudformationmergemimestylesjsdomemitshimRxJS.envmacosmonorepojsxecmascriptimmerprotoclassesfastcopyreact-testing-librarysignalsPushnumbersinatraconcatMapnodejssymbolsbddtypanionstringifyhardlinksmkdirsmake dirsharedarraybufferebsworkflowparsebcryptcss nestingfilejsdiffArrayawesomesauceassertionUint32ArrayconsoleargvchromiummodulesreactkoreanarraybufferefficientsigintwindowsirqsharedarrayECMAScript 3Array.prototype.flatMapdescriptorTypeScriptaccessibilitychineseWeakMapfind-upredux-toolkitargparsehasOwncommand-lineSymboltrimLeftcryptwritestreameventDispatcherStyleSheetloadingwatchES8toolsmime-dbTypedArraypostcss-pluginiteratorformshooksassertcompile lesstypedarrayswalkstylingloadbalancingjQueryi18nconcatmatchuuiddirectorycloudsearchapinested cssreplaylistenersextrabrowserlistglacierwarningString.prototype.trimidleflagcloudtrailserializerinputfromguidxtermyupdataviewcloudfrontvariables in csstddbundlingstylesheet$.extendfile systemmomentinterruptscontainssymlinkasciipicomatchunicodecheckloglesscss@@toStringTagflagselbairbnbes6offsetcollectionextensionES5pipekinesisReflect.getPrototypeOftesterboundtoobjectbatchequales2016channelfastcloneredactflattenmetadatapatchfastifypreserve-symlinkswhatwginternalES6coercibleviewminimalsignalajaxqsdeletequoteprocesscallbackarktypepersistentidownclassnamesisConcatSpreadablenegativeschemeSetECMAScript 2021ArrayBuffer#sliceemrgdprtapetoolkitisshrinkwrapECMAScript 2015es-shim APIextendbufferpackage managerbundlerless compilerdropjwtrouterpnpm9hasOwnPropertyrateES7invariantstreams2package.jsondescriptorsintrinsicrangeerrorastrequestvaluesECMAScript 6react-hook-formimportESECMAScript 7reduxagentObject.entriesopenlinewrapCSSStyleDeclarationIteratorrestcompilerqueueMicrotaskstyled-componentsstylelookes2017chromeBigInt64ArraymapreducepackagesvariablesduplexproxyeventEmittertypejasminebrowserparsingwatchereast-asian-widthslicerobustperformancemiddlewaresnseveryHyBigetOwnPropertyDescriptorsetcode pointsObservablesmochaeslintconfigclassnamefindmatchAlldynamodbless cssArray.prototype.findLastdebuggerfixed-widthcorsnopeES2020equalitylinuxgenericsECMAScript 2017pyyamlUint8Arrayratelimitautoscalingmkdirplanguagedatareadablestreamvalidenvupdescriptionl10nRegExp#flagsxhrUint8ClampedArrayObject.iscall-boundomitwhichsortedtestingcalljestttydatereact-hooksMapcloneutil.inspectstyleguideencryptionES2022namessetImmediateprogressURLSearchParamsjsonpathcss-in-jsoptimizer-0columnsetPrototypeOftakeresolvecircularphonestringifiertrimlrumoduletrimStartfull-widthrapidauth__proto__arraysArray.prototype.flatruntimecoreconfigcolourArray.prototype.findLastIndexsespositiveplugintelephonekarmacloudwatchoptionfast-deep-copystdlibjapaneseES2018typedframeworkstreamsYAMLauthenticationinstallzerotypeoftypesafeshamObject.valuessyntaxobjtypescriptes8sigtermexit-codeless.jssymbolstructuredCloneworkerajvsettingsreducetoSortedendpointkeysrmrfc4122diff0censorwalkingglob
@kollorg/eveniet-praesentium@kollorg/eveniet-et@kollorg/exercitationem-assumenda-qui@kollorg/fuga-harum@kollorg/facere-optio@kollorg/fugiat-animi@kollorg/facilis-eum@kollorg/fugiat-cum-libero@kollorg/fuga-ipsum-illum@kollorg/facere-suscipit@kollorg/fugit-id-quisquam@kollorg/fuga-laborum@kollorg/ipsam-omnis@kollorg/ipsum-porro@kollorg/ipsum-sint@kollorg/itaque-voluptatum@kollorg/ipsam-labore@kollorg/labore-facilis-ab@kollorg/iste-sed-quos@kollorg/itaque-laudantium-nesciunt@kollorg/labore-facilis@kollorg/laudantium-molestias@kollorg/labore-minus-nesciunt@kollorg/laboriosam-neque@kollorg/labore-quidem@kollorg/laudantium-fuga@kollorg/labore-magnam@kollorg/magnam-iure@kollorg/magnam-natus@kollorg/molestias-asperiores@kollorg/minus-eveniet-dolor@kollorg/modi-fugit-accusantium@kollorg/molestias-non@kollorg/molestias-aperiam@kollorg/molestias-quae-iste@kollorg/modi-saepe@kollorg/molestiae-pariatur@kollorg/mollitia-cupiditate@kollorg/natus-ipsum@kollorg/mollitia-neque-maiores@kollorg/natus-tenetur-laudantium@kollorg/nemo-omnis@kollorg/necessitatibus-qui@kollorg/neque-non@kollorg/nihil-dolorem@kollorg/nisi-deserunt-suscipit@kollorg/nisi-aliquid-eum@kollorg/officia-voluptatem-eius@kollorg/officiis-earum-ducimus@kollorg/odio-cupiditate@kollorg/officia-porro@kollorg/occaecati-totam@kollorg/odit-exercitationem@kollorg/officia-explicabo@kollorg/odio-aspernatur@kollorg/odit-accusantium@kollorg/praesentium-perferendis@kollorg/quae-nam-minus@kollorg/provident-unde@kollorg/placeat-sapiente@kollorg/possimus-dolorem-occaecati@kollorg/possimus-dolores@kollorg/provident-ab-facilis@kollorg/qui-itaque@kollorg/quaerat-veritatis@kollorg/quam-hic@kollorg/quaerat-dolorem-soluta@kollorg/quaerat-error@kollorg/quaerat-ad@kollorg/quidem-dolores-ad@kollorg/quis-dolorem@kollorg/quisquam-totam@kollorg/repudiandae-accusamus-corrupti@kollorg/rerum-quaerat-et@kollorg/saepe-eum@kollorg/rerum-laudantium@kollorg/sapiente-consequatur-maxime@kollorg/rem-rem@kollorg/saepe-rem@kollorg/saepe-ut@kollorg/reiciendis-pariatur@kollorg/reiciendis-rem@kollorg/unde-quae-dignissimos@kollorg/unde-ullam@kollorg/temporibus-quas@kollorg/tenetur-eius@kollorg/ullam-consequuntur@kollorg/ullam-modi@kollorg/tempora-maiores@kollorg/unde-commodi-illo@kollorg/temporibus-explicabo@kollorg/veritatis-eius@kollorg/vitae-tempore-qui@kollorg/veritatis-aliquam@kollorg/veritatis-alias@kollorg/vitae-quia-incidunt@kollorg/vero-quaerat-itaque@kollorg/voluptatum-veniam@kollorg/animi-quisquam@kollorg/amet-minima
5.10.118

10 months ago

5.10.117

10 months ago

5.10.116

10 months ago

5.9.116

10 months ago

5.9.115

11 months ago

5.9.113

11 months ago

5.9.114

11 months ago

5.9.112

11 months ago

5.9.111

11 months ago

5.9.110

11 months ago

5.9.109

11 months ago

5.9.108

11 months ago

5.9.107

11 months ago

5.9.106

11 months ago

5.9.105

11 months ago

5.9.104

11 months ago

4.9.102

11 months ago

3.8.89

11 months ago

4.9.100

11 months ago

3.8.87

12 months ago

4.9.101

11 months ago

3.8.88

12 months ago

3.8.85

12 months ago

3.8.86

12 months ago

3.6.79

12 months ago

3.6.78

12 months ago

3.6.77

12 months ago

3.6.76

12 months ago

3.6.75

12 months ago

3.6.74

12 months ago

3.6.73

12 months ago

3.6.72

12 months ago

3.6.71

12 months ago

3.8.92

11 months ago

3.8.90

11 months ago

3.8.91

11 months ago

2.1.18

1 year ago

2.1.19

1 year ago

2.3.49

1 year ago

2.3.46

1 year ago

2.3.48

1 year ago

2.1.21

1 year ago

2.3.47

1 year ago

2.1.22

1 year ago

5.9.102

11 months ago

2.1.20

1 year ago

5.9.103

11 months ago

2.5.62

1 year ago

2.3.57

1 year ago

2.3.56

1 year ago

2.3.59

1 year ago

2.3.58

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.55

1 year ago

2.3.54

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

3.7.79

12 months ago

4.8.92

11 months ago

4.8.94

11 months ago

4.8.93

11 months ago

4.8.96

11 months ago

4.8.95

11 months ago

4.8.97

11 months ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

3.7.84

12 months ago

2.6.66

1 year ago

3.7.85

12 months ago

2.6.67

1 year ago

3.7.82

12 months ago

2.6.68

1 year ago

3.7.83

12 months ago

2.6.69

1 year ago

3.7.80

12 months ago

2.6.62

1 year ago

3.7.81

12 months ago

2.6.63

1 year ago

2.6.64

1 year ago

2.6.65

1 year ago

2.6.70

1 year ago

2.6.71

1 year ago

4.9.97

11 months ago

4.9.99

11 months ago

4.9.98

11 months ago

2.2.39

1 year ago

2.2.37

1 year ago

2.2.38

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

2.2.33

1 year ago

2.4.59

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

2.2.46

1 year ago

2.2.44

1 year ago

2.2.45

1 year ago

2.2.42

1 year ago

2.2.43

1 year ago

2.2.40

1 year ago

2.2.41

1 year ago

2.4.61

1 year ago

2.4.60

1 year ago

2.4.62

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago