Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@defer.run/client

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defer.run/client - npm Package Compare versions

Comparing version 0.3.0-alpha-20230112084338-5e6fa38 to 0.3.0-alpha-20230113115332-fa47bef

14

cjs/index.js

@@ -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 @@ },

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