@digipair/skill-cron 0.21.1 → 0.21.2
Sign up to get free protection for your applications and to get access to all the features.
package/index.cjs.js
CHANGED
@@ -10001,7 +10001,7 @@ let CronService = class CronService {
|
|
10001
10001
|
async crons(params, _pinsSettingsList, context) {
|
10002
10002
|
var _context_privates;
|
10003
10003
|
var _context_privates_EDITOR_PATH;
|
10004
|
-
const { path = (
|
10004
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs' } = params;
|
10005
10005
|
const text = await fs.promises.readFile(`${path}/planning.json`, 'utf8');
|
10006
10006
|
const crons = JSON.parse(`[${text}]`);
|
10007
10007
|
return crons;
|
@@ -10009,7 +10009,7 @@ let CronService = class CronService {
|
|
10009
10009
|
async addCron(params, _pinsSettingsList, context) {
|
10010
10010
|
var _context_privates;
|
10011
10011
|
var _context_privates_EDITOR_PATH;
|
10012
|
-
const { path = (
|
10012
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', time, digipair, reasoning } = params;
|
10013
10013
|
const cron = {
|
10014
10014
|
id: v4(),
|
10015
10015
|
time,
|
@@ -10024,7 +10024,7 @@ let CronService = class CronService {
|
|
10024
10024
|
async deleteCron(params, _pinsSettingsList, context) {
|
10025
10025
|
var _context_privates;
|
10026
10026
|
var _context_privates_EDITOR_PATH;
|
10027
|
-
const { path = (
|
10027
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10028
10028
|
const text = await fs.promises.readFile(`${path}/planning.json`, 'utf8');
|
10029
10029
|
const crons = JSON.parse(`[${text}]`).filter((cron)=>cron.id !== id);
|
10030
10030
|
const ndjson = crons.map(JSON.stringify).join('\n');
|
@@ -10037,7 +10037,7 @@ let CronService = class CronService {
|
|
10037
10037
|
async enableCron(params, _pinsSettingsList, context) {
|
10038
10038
|
var _context_privates;
|
10039
10039
|
var _context_privates_EDITOR_PATH;
|
10040
|
-
const { path = (
|
10040
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10041
10041
|
const text = await fs.promises.readFile(`${path}/planning.json`, 'utf8');
|
10042
10042
|
const crons = JSON.parse(`[${text}]`);
|
10043
10043
|
const cron = crons.find((cron)=>cron.id === id);
|
@@ -10050,7 +10050,7 @@ let CronService = class CronService {
|
|
10050
10050
|
async disableCron(params, _pinsSettingsList, context) {
|
10051
10051
|
var _context_privates;
|
10052
10052
|
var _context_privates_EDITOR_PATH;
|
10053
|
-
const { path = (
|
10053
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10054
10054
|
const text = await fs.promises.readFile(`${path}/planning.json`, 'utf8');
|
10055
10055
|
const crons = JSON.parse(`[${text}]`);
|
10056
10056
|
const cron = crons.find((cron)=>cron.id === id);
|
package/index.esm.js
CHANGED
@@ -9993,7 +9993,7 @@ let CronService = class CronService {
|
|
9993
9993
|
async crons(params, _pinsSettingsList, context) {
|
9994
9994
|
var _context_privates;
|
9995
9995
|
var _context_privates_EDITOR_PATH;
|
9996
|
-
const { path = (
|
9996
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs' } = params;
|
9997
9997
|
const text = await promises.readFile(`${path}/planning.json`, 'utf8');
|
9998
9998
|
const crons = JSON.parse(`[${text}]`);
|
9999
9999
|
return crons;
|
@@ -10001,7 +10001,7 @@ let CronService = class CronService {
|
|
10001
10001
|
async addCron(params, _pinsSettingsList, context) {
|
10002
10002
|
var _context_privates;
|
10003
10003
|
var _context_privates_EDITOR_PATH;
|
10004
|
-
const { path = (
|
10004
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', time, digipair, reasoning } = params;
|
10005
10005
|
const cron = {
|
10006
10006
|
id: v4(),
|
10007
10007
|
time,
|
@@ -10016,7 +10016,7 @@ let CronService = class CronService {
|
|
10016
10016
|
async deleteCron(params, _pinsSettingsList, context) {
|
10017
10017
|
var _context_privates;
|
10018
10018
|
var _context_privates_EDITOR_PATH;
|
10019
|
-
const { path = (
|
10019
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10020
10020
|
const text = await promises.readFile(`${path}/planning.json`, 'utf8');
|
10021
10021
|
const crons = JSON.parse(`[${text}]`).filter((cron)=>cron.id !== id);
|
10022
10022
|
const ndjson = crons.map(JSON.stringify).join('\n');
|
@@ -10029,7 +10029,7 @@ let CronService = class CronService {
|
|
10029
10029
|
async enableCron(params, _pinsSettingsList, context) {
|
10030
10030
|
var _context_privates;
|
10031
10031
|
var _context_privates_EDITOR_PATH;
|
10032
|
-
const { path = (
|
10032
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10033
10033
|
const text = await promises.readFile(`${path}/planning.json`, 'utf8');
|
10034
10034
|
const crons = JSON.parse(`[${text}]`);
|
10035
10035
|
const cron = crons.find((cron)=>cron.id === id);
|
@@ -10042,7 +10042,7 @@ let CronService = class CronService {
|
|
10042
10042
|
async disableCron(params, _pinsSettingsList, context) {
|
10043
10043
|
var _context_privates;
|
10044
10044
|
var _context_privates_EDITOR_PATH;
|
10045
|
-
const { path = (
|
10045
|
+
const { path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH'] ? `${process.env['DIGIPAIR_AGENTS_PATH']}/digipairs` : './factory/digipairs', id } = params;
|
10046
10046
|
const text = await promises.readFile(`${path}/planning.json`, 'utf8');
|
10047
10047
|
const crons = JSON.parse(`[${text}]`);
|
10048
10048
|
const cron = crons.find((cron)=>cron.id === id);
|
package/package.json
CHANGED
File without changes
|
File without changes
|