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

n8n-workflow

Package Overview
Dependencies
Maintainers
2
Versions
285
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-workflow - npm Package Compare versions

Comparing version 1.27.0 to 1.27.1

20

dist/errors/node-api.error.js

@@ -7,2 +7,3 @@ "use strict";

const utils_1 = require("../utils");
const axios_1 = require("axios");
const ERROR_MESSAGE_PROPERTIES = [

@@ -62,4 +63,7 @@ 'cause',

constructor(node, errorResponse, { message, description, httpCode, parseXml, runIndex, itemIndex, level, functionality, messageMapping, } = {}) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
super(node, errorResponse);
if (!httpCode && errorResponse instanceof axios_1.AxiosError) {
httpCode = (_b = (_a = errorResponse.response) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toString();
}
if (errorResponse.error) {

@@ -69,10 +73,10 @@ (0, utils_1.removeCircularRefs)(errorResponse.error);

if (!description &&
(errorResponse.description || ((_a = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _a === void 0 ? void 0 : _a.description))) {
(errorResponse.description || ((_c = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _c === void 0 ? void 0 : _c.description))) {
this.description = (errorResponse.description ||
((_b = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _b === void 0 ? void 0 : _b.description));
((_d = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _d === void 0 ? void 0 : _d.description));
}
if (!message &&
(errorResponse.message || ((_c = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _c === void 0 ? void 0 : _c.message) || description)) {
(errorResponse.message || ((_e = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _e === void 0 ? void 0 : _e.message) || description)) {
this.message = (errorResponse.message ||
((_d = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _d === void 0 ? void 0 : _d.message) ||
((_f = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _f === void 0 ? void 0 : _f.message) ||
description);

@@ -91,3 +95,3 @@ }

this.httpCode =
(_e = this.findProperty(errorResponse, ERROR_STATUS_PROPERTIES, ERROR_NESTING_PROPERTIES)) !== null && _e !== void 0 ? _e : null;
(_g = this.findProperty(errorResponse, ERROR_STATUS_PROPERTIES, ERROR_NESTING_PROPERTIES)) !== null && _g !== void 0 ? _g : null;
}

@@ -97,3 +101,3 @@ if (level) {

}
else if (((_f = this.httpCode) === null || _f === void 0 ? void 0 : _f.charAt(0)) !== '5') {
else if (((_h = this.httpCode) === null || _h === void 0 ? void 0 : _h.charAt(0)) !== '5') {
this.level = 'warning';

@@ -123,3 +127,3 @@ }

(errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.code) ||
((_g = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _g === void 0 ? void 0 : _g.code) ||
((_j = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.reason) === null || _j === void 0 ? void 0 : _j.code) ||
undefined, messageMapping);

@@ -126,0 +130,0 @@ if (functionality !== undefined)

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

const tryToParseDateTime = (value) => {
if (value instanceof luxon_1.DateTime && value.isValid) {
return value;
}
if (value instanceof Date) {
const fromJSDate = luxon_1.DateTime.fromJSDate(value);
if (fromJSDate.isValid) {
return fromJSDate;
}
}
const dateString = String(value).trim();

@@ -72,2 +81,6 @@ const isoDate = luxon_1.DateTime.fromISO(dateString, { setZone: true });

}
const parsedDateTime = luxon_1.DateTime.fromMillis(Date.parse(dateString));
if (parsedDateTime.isValid) {
return parsedDateTime;
}
throw new errors_1.ApplicationError('Value is not a valid date', { extra: { dateString } });

@@ -74,0 +87,0 @@ };

2

dist/Workflow.d.ts

@@ -15,2 +15,3 @@ /// <reference types="node" />

staticData: IDataObject;
testStaticData: IDataObject | undefined;
pinData?: IPinData;

@@ -36,2 +37,3 @@ constructor(parameters: {

getStaticData(type: string, node?: INode): IDataObject;
setTestStaticData(testStaticData: IDataObject): void;
getTriggerNodes(): INode[];

@@ -38,0 +40,0 @@ getPollNodes(): INode[];

@@ -163,2 +163,3 @@ "use strict";

getStaticData(type, node) {
var _a;
let key;

@@ -179,2 +180,4 @@ if (type === 'global') {

}
if ((_a = this.testStaticData) === null || _a === void 0 ? void 0 : _a[key])
return this.testStaticData[key];
if (this.staticData[key] === undefined) {

@@ -185,2 +188,5 @@ this.staticData[key] = ObservableObject.create({}, this.staticData);

}
setTestStaticData(testStaticData) {
this.testStaticData = testStaticData;
}
getTriggerNodes() {

@@ -187,0 +193,0 @@ return this.queryNodes((nodeType) => !!nodeType.trigger);

{
"name": "n8n-workflow",
"version": "1.27.0",
"version": "1.27.1",
"description": "Workflow base code of n8n",

@@ -42,2 +42,3 @@ "license": "SEE LICENSE IN LICENSE.md",

"ast-types": "0.15.2",
"axios": "1.6.7",
"callsites": "3.1.0",

@@ -44,0 +45,0 @@ "deep-equal": "2.2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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