Socket
Socket
Sign inDemoInstall

@activepieces/piece-schedule

Package Overview
Dependencies
20
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

10

package.json
{
"name": "@activepieces/piece-schedule",
"version": "0.1.2",
"version": "0.1.3",
"dependencies": {
"@sinclair/typebox": "0.26.8",
"axios": "^1.0.0",
"axios": "^1.6.3",
"dayjs": "1.11.9",

@@ -12,5 +12,5 @@ "is-base64": "1.1.0",

"semver": "7.5.4",
"@activepieces/pieces-framework": "0.7.1",
"@activepieces/shared": "0.10.9",
"tslib": "2.6.1"
"@activepieces/pieces-framework": "0.7.7",
"@activepieces/shared": "0.10.54",
"tslib": "1.14.1"
},

@@ -17,0 +17,0 @@ "main": "./src/index.js",

@@ -1,4 +0,4 @@

import { TriggerStrategy } from "@activepieces/pieces-framework";
import { TriggerStrategy } from '@activepieces/pieces-framework';
export declare const everyXMinutesTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty, {
minutes: import("@activepieces/pieces-framework").NumberProperty<true>;
minutes: import("@activepieces/pieces-framework").StaticDropdownProperty<number, true>;
}>;

@@ -13,8 +13,15 @@ "use strict";

props: {
minutes: pieces_framework_1.Property.Number({
displayName: "Minutes",
minutes: pieces_framework_1.Property.StaticDropdown({
displayName: 'Minutes',
description: 'Valid value between 1 to 59.',
required: true,
defaultValue: 1,
validators: [pieces_framework_1.Validators.minValue(1)]
})
options: {
disabled: false,
options: Array.from({ length: 59 }, (_, index) => ({
label: `${index + 1} minute${index !== 0 ? 's' : ''}`,
value: index + 1,
})),
},
}),
},

@@ -25,3 +32,3 @@ onEnable: (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {

cronExpression: cronExpression,
timezone: 'UTC'
timezone: 'UTC',
});

@@ -31,11 +38,13 @@ }),

const cronExpression = `*/${ctx.propsValue.minutes} * * * *`;
return Promise.resolve([{
return Promise.resolve([
{
cron_expression: cronExpression,
timezone: 'UTC'
}]);
timezone: 'UTC',
},
]);
},
onDisable: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
console.log('onDisable');
})
}),
});
//# sourceMappingURL=every-x-minutes.trigger.js.map

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc