Skip to content

Commit

Permalink
Merge pull request #6 from netroy/update-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies. Sync with n8n-nodes-starter
  • Loading branch information
drudge authored Aug 2, 2024
2 parents e02ef49 + 719d7f7 commit 2b7b045
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 97 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
root: true,

env: {
browser: true,
es6: true,
node: true,
},

parser: '@typescript-eslint/parser',

parserOptions: {
project: ['./tsconfig.json'],
sourceType: 'module',
extraFileExtensions: ['.json'],
},

ignorePatterns: ['.eslintrc.js', '**/*.js', '**/node_modules/**', '**/dist/**'],

overrides: [
{
files: ['package.json', 'credentials/**/*.ts', 'nodes/**/*.ts']
},
],
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
Empty file removed index.js
Empty file.
3 changes: 1 addition & 2 deletions nodes/NetSuite/NetSuite.node.options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ export const nodeDescription: INodeTypeDescription = {
name: 'simpleEnumFormat',
type: 'boolean',
required: true,
// eslint-disable-next-line n8n-nodes-base/node-param-default-wrong-for-simplify
default: false,
displayOptions: {
show: {
Expand Down Expand Up @@ -457,7 +456,7 @@ export const nodeDescription: INodeTypeDescription = {
default: 1,
typeOptions: {
minValue: 1,
}, // eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-limit
},
description: 'Use control the maximum number of REST requests sent to NetSuite at the same time. The default is 1.',
},
{
Expand Down
2 changes: 1 addition & 1 deletion nodes/NetSuite/NetSuite.node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { debuglog } from 'util';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
Expand Down
5 changes: 2 additions & 3 deletions nodes/NetSuite/NetSuite.node.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { IExecuteFunctions } from 'n8n-core';
import { INodeExecutionData, JsonObject } from 'n8n-workflow';
import { IExecuteFunctions, INodeExecutionData, JsonObject } from 'n8n-workflow';

export type INetSuiteCredentials = {
hostname: string;
Expand Down Expand Up @@ -68,4 +67,4 @@ export type INetSuitePagedBody = {
export type INetSuiteLink = {
rel: string;
href: string;
};
};
146 changes: 60 additions & 86 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,63 @@
{
"name": "n8n-nodes-netsuite",
"version": "0.7.5",
"description": "n8n node for NetSuite using the REST API",
"license": "MIT",
"homepage": "https://github.com/drudge/n8n-nodes-netsuite",
"author": {
"name": "Nicholas Penree",
"email": "nick@penree.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/drudge/n8n-nodes-netsuite.git"
},
"main": "index.js",
"scripts": {
"dev": "npm run watch",
"build": "tsc && gulp",
"lint": "eslint",
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
"nodelinter": "nodelinter",
"watch": "tsc --watch",
"test": "jest"
},
"files": [
"dist"
"name": "n8n-nodes-netsuite",
"version": "0.7.5",
"description": "n8n node for NetSuite using the REST API",
"license": "MIT",
"homepage": "https://github.com/drudge/n8n-nodes-netsuite",
"engines": {
"node": ">=18.17"
},
"author": {
"name": "Nicholas Penree",
"email": "nick@penree.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/drudge/n8n-nodes-netsuite.git"
},
"main": "index.js",
"scripts": {
"dev": "tsc --watch",
"build": "tsc && gulp",
"lint": "eslint nodes credentials package.json",
"lintfix": "eslint nodes credentials package.json --fix",
"prepublishOnly": "npm run build && npm run lint"
},
"files": [
"dist"
],
"keywords": [
"n8n",
"node",
"netsuite",
"rest",
"api",
"suitetalk",
"n8n-node",
"n8n-community-node-package"
],
"n8n": {
"n8nNodesApiVersion": 1,
"credentials": [
"dist/credentials/NetSuite.credentials.js"
],
"keywords": [
"n8n",
"node",
"netsuite",
"rest",
"api",
"suitetalk",
"n8n-node",
"n8n-community-node-package"
],
"n8n": {
"credentials": [
"dist/credentials/NetSuite.credentials.js"
],
"nodes": [
"dist/nodes/NetSuite/NetSuite.node.js"
]
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/jest": "^26.0.13",
"@types/luxon": "^3.3.0",
"@types/node": "^14.17.27",
"@types/request-promise-native": "~1.0.15",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.29.0",
"@typescript-eslint/parser": "~5.45",
"eslint": "^8.18.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-prefer-arrow": "^1.2.3",
"gulp": "^4.0.0",
"jest": "^26.4.2",
"n8n-core": "*",
"n8n-workflow": "*",
"nodelinter": "^0.1.9",
"ts-jest": "^26.3.0",
"typescript": "~4.8.4"
},
"dependencies": {
"@fye/netsuite-rest-api": "^2.0.0",
"n8n-core": "~0.101.0",
"p-limit": "^3.1.0"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testURL": "http://localhost/",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
}
"nodes": [
"dist/nodes/NetSuite/NetSuite.node.js"
]
},
"devDependencies": {
"@types/node": "^18.19.39",
"@typescript-eslint/parser": "^7.16.0",
"eslint": "^8.57.0",
"gulp": "^5.0.0",
"n8n-workflow": "*",
"typescript": "^5.5.3"
},
"peerDependencies": {
"n8n-workflow": "*"
},
"dependencies": {
"@fye/netsuite-rest-api": "^2.3.1",
"p-limit": "^3.1.0"
}
}

0 comments on commit 2b7b045

Please sign in to comment.