@defer.run/client
Advanced tools
Comparing version 0.3.0-alpha-20230112084338-5e6fa38 to 0.3.0-alpha-20230113115332-fa47bef
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.defer = exports.isDeferExecution = exports.init = void 0; | ||
// @ts-expect-error no types def | ||
const friendly_cron_1 = __importDefault(require("friendly-cron")); | ||
// @ts-expect-error untyped dep | ||
const natural_cron_js_1 = __importDefault(require("@darkeyedevelopers/natural-cron.js")); | ||
const constants_js_1 = require("./constants.js"); | ||
@@ -84,3 +84,3 @@ const execute_js_1 = require("./execute.js"); | ||
}; | ||
const cronTab = (0, friendly_cron_1.default)(schedule); | ||
const cronTab = (0, natural_cron_js_1.default)(schedule); | ||
ret.__fn = fn; | ||
@@ -109,6 +109,6 @@ ret.__metadata = { | ||
// }; | ||
// async function myFunction() { | ||
// return 1; | ||
// } | ||
// defer.schedule(myFunction, "every day"); | ||
async function myFunction() { | ||
return 1; | ||
} | ||
exports.defer.schedule(myFunction, "every day"); | ||
// const importContactsD = defer(importContacts); | ||
@@ -115,0 +115,0 @@ // async function test() { |
@@ -1,3 +0,3 @@ | ||
// @ts-expect-error no types def | ||
import friendlyCron from "friendly-cron"; | ||
// @ts-expect-error untyped dep | ||
import getCronString from "@darkeyedevelopers/natural-cron.js"; | ||
import { DOMAIN, INTERNAL_VERSION, PATH, TOKEN_ENV_NAME } from "./constants.js"; | ||
@@ -74,3 +74,3 @@ import { executeBackgroundFunction, poolForExecutionResult, serializeBackgroundFunctionArguments, } from "./execute.js"; | ||
}; | ||
const cronTab = friendlyCron(schedule); | ||
const cronTab = getCronString(schedule); | ||
ret.__fn = fn; | ||
@@ -99,6 +99,6 @@ ret.__metadata = { | ||
// }; | ||
// async function myFunction() { | ||
// return 1; | ||
// } | ||
// defer.schedule(myFunction, "every day"); | ||
async function myFunction() { | ||
return 1; | ||
} | ||
defer.schedule(myFunction, "every day"); | ||
// const importContactsD = defer(importContacts); | ||
@@ -105,0 +105,0 @@ // async function test() { |
{ | ||
"name": "@defer.run/client", | ||
"version": "0.3.0-alpha-20230112084338-5e6fa38", | ||
"version": "0.3.0-alpha-20230113115332-fa47bef", | ||
"description": "cua JavaScript client", | ||
"dependencies": { | ||
"@darkeyedevelopers/natural-cron.js": "^1.1.0", | ||
"@whatwg-node/fetch": "^0.2.9", | ||
"friendly-cron": "^0.0.2", | ||
"parse-duration": "^1.0.2" | ||
@@ -9,0 +9,0 @@ }, |
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
27674
+ Added@darkeyedevelopers/natural-cron.js@1.1.0(transitive)
- Removedfriendly-cron@^0.0.2
- Removedfriendly-cron@0.0.2(transitive)