@nestjs/schedule
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -11,3 +11,3 @@ import { OnApplicationBootstrap, OnApplicationShutdown } from '@nestjs/common'; | ||
onApplicationBootstrap(): void; | ||
onApplicationShutdown(signal?: string | undefined): void; | ||
onApplicationShutdown(): void; | ||
mountIntervals(): void; | ||
@@ -14,0 +14,0 @@ mountTimeouts(): void; |
@@ -11,9 +11,6 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const common_1 = require("@nestjs/common"); | ||
const cron_1 = require("cron"); | ||
const v4_1 = __importDefault(require("uuid/v4")); | ||
const uuid_1 = require("uuid"); | ||
const scheduler_registry_1 = require("./scheduler.registry"); | ||
@@ -32,3 +29,3 @@ let SchedulerOrchestrator = class SchedulerOrchestrator { | ||
} | ||
onApplicationShutdown(signal) { | ||
onApplicationShutdown() { | ||
this.clearTimeouts(); | ||
@@ -78,3 +75,3 @@ this.clearIntervals(); | ||
} | ||
addTimeout(methodRef, timeout, name = v4_1.default()) { | ||
addTimeout(methodRef, timeout, name = uuid_1.v4()) { | ||
this.timeouts[name] = { | ||
@@ -85,3 +82,3 @@ target: methodRef, | ||
} | ||
addInterval(methodRef, timeout, name = v4_1.default()) { | ||
addInterval(methodRef, timeout, name = uuid_1.v4()) { | ||
this.intervals[name] = { | ||
@@ -93,3 +90,3 @@ target: methodRef, | ||
addCron(methodRef, options) { | ||
const name = options.name || v4_1.default(); | ||
const name = options.name || uuid_1.v4(); | ||
this.cronJobs[name] = { | ||
@@ -96,0 +93,0 @@ target: methodRef, |
{ | ||
"name": "@nestjs/schedule", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@schedule)", | ||
@@ -10,2 +10,4 @@ "author": "Kamil Mysliwiec", | ||
"build": "rimraf -rf dist && tsc -p tsconfig.json", | ||
"format": "prettier **/**/*.ts --ignore-path ./.prettierignore --write", | ||
"lint": "eslint 'lib/**/*.ts' --fix", | ||
"prepublish:npm": "npm run build", | ||
@@ -15,28 +17,38 @@ "publish:npm": "npm publish --access public", | ||
"publish:next": "npm publish --access public --tag next", | ||
"test:integration": "jest --config ./tests/jest-e2e.json --runInBand" | ||
"test:integration": "jest --config ./tests/jest-e2e.json --runInBand", | ||
"prerelease": "npm run build", | ||
"release": "release-it" | ||
}, | ||
"dependencies": { | ||
"cron": "1.8.2", | ||
"uuid": "3.4.0" | ||
"uuid": "7.0.2" | ||
}, | ||
"devDependencies": { | ||
"@nestjs/common": "6.11.0", | ||
"@nestjs/core": "6.11.0", | ||
"@nestjs/platform-express": "6.11.0", | ||
"@nestjs/testing": "6.11.0", | ||
"@types/cron": "1.7.1", | ||
"@types/jest": "24.9.1", | ||
"@commitlint/cli": "8.3.5", | ||
"@commitlint/config-angular": "8.3.4", | ||
"@nestjs/common": "6.11.11", | ||
"@nestjs/core": "6.11.11", | ||
"@nestjs/platform-express": "6.11.11", | ||
"@nestjs/testing": "6.11.11", | ||
"@types/cron": "1.7.2", | ||
"@types/jest": "25.1.4", | ||
"@types/node": "7.10.8", | ||
"@types/sinon": "7.5.1", | ||
"@types/uuid": "3.4.6", | ||
"husky": "4.2.1", | ||
"@types/sinon": "7.5.2", | ||
"@types/uuid": "7.0.0", | ||
"@typescript-eslint/eslint-plugin": "2.20.0", | ||
"@typescript-eslint/parser": "2.20.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-prettier": "6.10.0", | ||
"eslint-plugin-import": "2.20.1", | ||
"husky": "4.2.3", | ||
"jest": "25.1.0", | ||
"lint-staged": "10.0.2", | ||
"lint-staged": "10.0.8", | ||
"prettier": "1.19.1", | ||
"reflect-metadata": "0.1.13", | ||
"rimraf": "3.0.0", | ||
"release-it": "12.6.1", | ||
"rimraf": "3.0.2", | ||
"rxjs": "6.5.4", | ||
"sinon": "8.1.0", | ||
"sinon": "9.0.1", | ||
"ts-jest": "24.3.0", | ||
"typescript": "3.7.4" | ||
"typescript": "3.8.3" | ||
}, | ||
@@ -49,4 +61,3 @@ "peerDependencies": { | ||
"*.ts": [ | ||
"prettier --write", | ||
"git add" | ||
"prettier --write" | ||
] | ||
@@ -53,0 +64,0 @@ }, |
@@ -10,3 +10,3 @@ <p align="center"> | ||
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p> | ||
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p> | ||
<p align="center"> | ||
@@ -13,0 +13,0 @@ <a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38097
27
703
+ Addeduuid@7.0.2(transitive)
- Removeduuid@3.4.0(transitive)
Updateduuid@7.0.2