Socket
Socket
Sign inDemoInstall

@nestjs/schedule

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/schedule - npm Package Compare versions

Comparing version 2.2.3 to 3.0.0

5

dist/decorators/cron.decorator.js

@@ -14,4 +14,7 @@ "use strict";

const name = options && options.name;
return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(schedule_constants_1.SCHEDULE_CRON_OPTIONS, Object.assign(Object.assign({}, options), { cronTime })), (0, common_1.SetMetadata)(schedule_constants_1.SCHEDULER_NAME, name), (0, common_1.SetMetadata)(schedule_constants_1.SCHEDULER_TYPE, scheduler_type_enum_1.SchedulerType.CRON));
return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(schedule_constants_1.SCHEDULE_CRON_OPTIONS, {
...options,
cronTime,
}), (0, common_1.SetMetadata)(schedule_constants_1.SCHEDULER_NAME, name), (0, common_1.SetMetadata)(schedule_constants_1.SCHEDULER_TYPE, scheduler_type_enum_1.SchedulerType.CRON));
}
exports.Cron = Cron;

@@ -11,11 +11,2 @@ "use strict";

};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -96,5 +87,5 @@ exports.ScheduleExplorer = void 0;

wrapFunctionInTryCatchBlocks(methodRef, instance) {
return (...args) => __awaiter(this, void 0, void 0, function* () {
return async (...args) => {
try {
yield methodRef.call(instance, ...args);
await methodRef.call(instance, ...args);
}

@@ -104,3 +95,3 @@ catch (error) {

}
});
};
}

@@ -107,0 +98,0 @@ };

@@ -8,11 +8,2 @@ "use strict";

};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var SchedulerRegistry_1;

@@ -115,5 +106,5 @@ Object.defineProperty(exports, "__esModule", { value: true });

wrapFunctionInTryCatchBlocks(methodRef, instance) {
return (...args) => __awaiter(this, void 0, void 0, function* () {
return async (...args) => {
try {
yield methodRef.call(instance, ...args);
await methodRef.call(instance, ...args);
}

@@ -123,3 +114,3 @@ catch (error) {

}
});
};
}

@@ -126,0 +117,0 @@ };

22

package.json
{
"name": "@nestjs/schedule",
"version": "2.2.3",
"version": "3.0.0",
"description": "Nest - modern, fast, powerful node.js web framework (@schedule)",

@@ -27,13 +27,13 @@ "author": "Kamil Mysliwiec",

"@commitlint/config-angular": "17.6.5",
"@nestjs/common": "9.4.2",
"@nestjs/core": "9.4.2",
"@nestjs/platform-express": "9.4.2",
"@nestjs/testing": "9.4.2",
"@nestjs/common": "10.0.0",
"@nestjs/core": "10.0.0",
"@nestjs/platform-express": "10.0.0",
"@nestjs/testing": "10.0.0",
"@types/cron": "2.0.1",
"@types/jest": "29.5.2",
"@types/node": "18.16.16",
"@types/node": "18.16.18",
"@types/sinon": "10.0.15",
"@types/uuid": "9.0.2",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"@typescript-eslint/eslint-plugin": "5.59.11",
"@typescript-eslint/parser": "5.59.11",
"eslint": "8.42.0",

@@ -50,3 +50,3 @@ "eslint-config-prettier": "8.8.0",

"rxjs": "7.8.1",
"sinon": "15.1.0",
"sinon": "15.1.2",
"ts-jest": "29.1.0",

@@ -56,4 +56,4 @@ "typescript": "5.1.3"

"peerDependencies": {
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0",
"@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0",
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0",
"@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0",
"reflect-metadata": "^0.1.12"

@@ -60,0 +60,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc