From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../Front/node_modules/define-lazy-prop/index.d.ts | 33 ----------- .../Front/node_modules/define-lazy-prop/index.js | 19 ------- .../Front/node_modules/define-lazy-prop/license | 9 --- .../node_modules/define-lazy-prop/package.json | 48 ---------------- .../Front/node_modules/define-lazy-prop/readme.md | 64 ---------------------- 5 files changed, 173 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.d.ts delete mode 100644 sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.js delete mode 100644 sandbox/testAppNevena/Front/node_modules/define-lazy-prop/license delete mode 100644 sandbox/testAppNevena/Front/node_modules/define-lazy-prop/package.json delete mode 100644 sandbox/testAppNevena/Front/node_modules/define-lazy-prop/readme.md (limited to 'sandbox/testAppNevena/Front/node_modules/define-lazy-prop') diff --git a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.d.ts b/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.d.ts deleted file mode 100644 index ba8998b8..00000000 --- a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** -Define a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) property on an object. - -@param object - Object to add property to. -@param propertyName - Name of the property to add. -@param fn - Called the first time `propertyName` is accessed. - -@example -``` -import defineLazyProp = require('define-lazy-prop'); - -const unicorn = { - // … -}; - -defineLazyProp(unicorn, 'rainbow', () => expensiveComputation()); - -app.on('user-action', () => { - doSomething(unicorn.rainbow); -}); -``` -*/ -declare function defineLazyProp< - ObjectType extends {[key: string]: unknown}, - PropertyNameType extends string, - PropertyValueType ->( - object: ObjectType, - propertyName: PropertyNameType, - fn: () => PropertyValueType -): ObjectType & {[K in PropertyNameType]: PropertyValueType}; - -export = defineLazyProp; diff --git a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.js b/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.js deleted file mode 100644 index b4f255f7..00000000 --- a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -module.exports = (object, propertyName, fn) => { - const define = value => Object.defineProperty(object, propertyName, {value, enumerable: true, writable: true}); - - Object.defineProperty(object, propertyName, { - configurable: true, - enumerable: true, - get() { - const result = fn(); - define(result); - return result; - }, - set(value) { - define(value); - } - }); - - return object; -}; diff --git a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/license b/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/license deleted file mode 100644 index e7af2f77..00000000 --- a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/package.json b/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/package.json deleted file mode 100644 index aff24d84..00000000 --- a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "define-lazy-prop", - "version": "2.0.0", - "description": "Define a lazily evaluated property on an object", - "license": "MIT", - "repository": "sindresorhus/define-lazy-prop", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "lazy", - "property", - "properties", - "prop", - "define", - "object", - "value", - "lazily", - "laziness", - "evaluation", - "eval", - "execute", - "getter", - "function", - "fn", - "memoize", - "cache", - "defer", - "deferred" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/readme.md b/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/readme.md deleted file mode 100644 index 5760b279..00000000 --- a/sandbox/testAppNevena/Front/node_modules/define-lazy-prop/readme.md +++ /dev/null @@ -1,64 +0,0 @@ -# define-lazy-prop [![Build Status](https://travis-ci.org/sindresorhus/define-lazy-prop.svg?branch=master)](https://travis-ci.org/sindresorhus/define-lazy-prop) - -> Define a [lazily evaluated](https://en.wikipedia.org/wiki/Lazy_evaluation) property on an object - -Useful when the value of a property is expensive to generate, so you want to delay the computation until the property is needed. For example, improving startup performance by deferring nonessential operations. - - -## Install - -``` -$ npm install define-lazy-prop -``` - - -## Usage - -```js -const defineLazyProp = require('define-lazy-prop'); - -const unicorn = { - // … -}; - -defineLazyProp(unicorn, 'rainbow', () => expensiveComputation()); - -app.on('user-action', () => { - doSomething(unicorn.rainbow); -}); -``` - - -## API - -### defineLazyProp(object, propertyName, fn) - -#### object - -Type: `Object` - -Object to add property to. - -#### propertyName - -Type: `string` - -Name of the property to add. - -#### fn - -Type: `Function` - -Called the first time `propertyName` is accessed. Expected to return a value. - - -## Related - -- [lazy-value](https://github.com/sindresorhus/lazy-value) - Create a lazily evaluated value -- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily -- [p-lazy](https://github.com/sindresorhus/p-lazy) - Create a lazy promise - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) -- cgit v1.2.3