From b37a692a593e2c2e703d1494ebec105affcb6429 Mon Sep 17 00:00:00 2001 From: Netanel Basal Date: Sat, 16 Sep 2017 22:45:10 +0300 Subject: [PATCH] chore(*): Add license --- LICENSE | 21 ++++++++++++ dist/debounce.d.ts | 8 ----- dist/debounce.js | 20 ----------- dist/index.d.ts | 3 -- dist/index.js | 8 ----- dist/timeout.d.ts | 6 ---- dist/timeout.js | 25 -------------- yarn-error.log | 83 ---------------------------------------------- 8 files changed, 21 insertions(+), 153 deletions(-) create mode 100644 LICENSE delete mode 100644 dist/debounce.d.ts delete mode 100644 dist/debounce.js delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/timeout.d.ts delete mode 100644 dist/timeout.js delete mode 100644 yarn-error.log diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5d10490 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2010-2017 Netanel Basal + +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. \ No newline at end of file diff --git a/dist/debounce.d.ts b/dist/debounce.d.ts deleted file mode 100644 index 865a838..0000000 --- a/dist/debounce.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * - * @export - * @param {number} [milliseconds=0] - * @param {any} [options={}] - * @returns - */ -export declare function debounce(milliseconds?: number, options?: {}): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; diff --git a/dist/debounce.js b/dist/debounce.js deleted file mode 100644 index b959b9b..0000000 --- a/dist/debounce.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var debounceFn = require("lodash.debounce"); -/** - * - * @export - * @param {number} [milliseconds=0] - * @param {any} [options={}] - * @returns - */ -function debounce(milliseconds, options) { - if (milliseconds === void 0) { milliseconds = 0; } - if (options === void 0) { options = {}; } - return function (target, propertyKey, descriptor) { - var originalMethod = descriptor.value; - descriptor.value = debounceFn(originalMethod, milliseconds, options); - return descriptor; - }; -} -exports.debounce = debounce; diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index f722582..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { timeout } from './timeout'; -export { debounce } from './debounce'; -export { throttle } from './throttle'; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 183f9d3..0000000 --- a/dist/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var timeout_1 = require("./timeout"); -exports.timeout = timeout_1.timeout; -var debounce_1 = require("./debounce"); -exports.debounce = debounce_1.debounce; -var throttle_1 = require("./throttle"); -exports.throttle = throttle_1.throttle; diff --git a/dist/timeout.d.ts b/dist/timeout.d.ts deleted file mode 100644 index 58fec40..0000000 --- a/dist/timeout.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * - * @param milliseconds - * @returns {(target:any, propertyKey:string, descriptor:PropertyDescriptor)=>PropertyDescriptor} - */ -export declare function timeout(milliseconds?: number): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; diff --git a/dist/timeout.js b/dist/timeout.js deleted file mode 100644 index f3035bf..0000000 --- a/dist/timeout.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * - * @param milliseconds - * @returns {(target:any, propertyKey:string, descriptor:PropertyDescriptor)=>PropertyDescriptor} - */ -function timeout(milliseconds) { - if (milliseconds === void 0) { milliseconds = 0; } - return function (target, propertyKey, descriptor) { - var originalMethod = descriptor.value; - descriptor.value = function () { - var _this = this; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - setTimeout(function () { - originalMethod.apply(_this, args); - }, milliseconds); - }; - return descriptor; - }; -} -exports.timeout = timeout; diff --git a/yarn-error.log b/yarn-error.log deleted file mode 100644 index 4b1f92f..0000000 --- a/yarn-error.log +++ /dev/null @@ -1,83 +0,0 @@ -Arguments: - /usr/local/Cellar/node/6.7.0/bin/node /usr/local/bin/yarn add standard-version -D - -PATH: - /Users/netanelbasal/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/netanelbasal/bin - -Yarn version: - 0.16.1 - -Node version: - 8.4.0 - -Platform: - darwin x64 - -npm manifest: - { - "name": "helpful-decorators", - "version": "0.0.0-development", - "description": "Helpful decorators for typescript applications", - "main": "dist/index.js", - "typings": "./dist/index.d.ts", - "jest": { - "moduleFileExtensions": [ - "ts", - "js" - ], - "transform": { - "\\.(ts)$": "/node_modules/ts-jest/preprocessor.js" - }, - "testRegex": "/__tests__/.*\\.(ts|js)$" - }, - "scripts": { - "build": "rm -rf ./dist && tsc", - "test": "jest", - "commit": "git cz", - "prepublish": "npm run build", - "setup": "semantic-release-cli setup", - "release": "standard-version", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" - }, - "config": { - "commitizen": { - "path": "node_modules/cz-conventional-changelog" - } - }, - "repository": { - "type": "git", - "url": "https://github.com/NetanelBasal/helpful-decorators" - }, - "license": "MIT", - "author": "Netanel Basal", - "keywords": [ - "decorators", - "setTimeout decorator", - "debounce decorator" - ], - "devDependencies": { - "@types/jest": "^20.0.8", - "commitizen": "^2.9.6", - "cz-conventional-changelog": "^2.0.0", - "jest": "^21.0.1", - "semantic-release": "^7.0.2", - "semantic-release-cli": "^3.0.3", - "ts-jest": "^21.0.0", - "typescript": "^2.5.2" - }, - "dependencies": { - "lodash.debounce": "^4.0.8" - } - } - -yarn manifest: - No manifest - -bower manifest: - No manifest - -Lockfile: - No lockfile - -Trace: - Error: EACCES: permission denied, scandir '/Users/netanelbasal/.yarn-cache/npm-tmp-0.0.29/x'