From 0317f82e54f3658cad3096e8ae51a311faacae4c Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 7 Mar 2022 19:37:32 +0900 Subject: [PATCH] Update dependency modules --- README.md | 12 ++++++------ package.json | 20 ++++++++++---------- templates/function/package.json.mustache | 6 +++--- templates/subflow/package.json.mustache | 2 +- templates/subflow/subflow.js.mustache | 16 ---------------- templates/swagger/package.json.mustache | 8 ++++---- templates/webofthings/package.json.mustache | 16 ++++++++-------- 7 files changed, 32 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 91f06bc..070fddb 100644 --- a/README.md +++ b/README.md @@ -93,11 +93,11 @@ You may need to run this with `sudo`, or from within an Administrator command sh ## Documentation -- [Use cases](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#use-cases) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#use-cases)) -- [How to use Node generator](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-use-node-generator) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-use-node-generator)) -- [Generated files which node package contains](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#generated-files-which-node-package-contains) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#generated-files-which-node-package-contains)) -- [How to create a node from OpenAPI document](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-openapi-document) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-openapi-document)) -- [How to create a node from function node](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-function-node) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-function-node)) -- [How to create a node from subflow](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index.md#how-to-create-a-node-from-subflow) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.1.1/docs/index_ja.md#how-to-create-a-node-from-subflow)) +- [Use cases](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#use-cases) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#use-cases)) +- [How to use Node generator](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#how-to-use-node-generator) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#how-to-use-node-generator)) +- [Generated files which node package contains](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#generated-files-which-node-package-contains) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#generated-files-which-node-package-contains)) +- [How to create a node from OpenAPI document](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#how-to-create-a-node-from-openapi-document) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#how-to-create-a-node-from-openapi-document)) +- [How to create a node from function node](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#how-to-create-a-node-from-function-node) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#how-to-create-a-node-from-function-node)) +- [How to create a node from subflow](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index.md#how-to-create-a-node-from-subflow) ([Japanese](https://github.com/node-red/node-red-nodegen/blob/0.2.0/docs/index_ja.md#how-to-create-a-node-from-subflow)) Note: Currently node generator supports GET and POST methods using JSON format without authentication. diff --git a/package.json b/package.json index 2c7e32e..63ecf8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-nodegen", - "version": "0.1.1", + "version": "0.2.0", "description": "Node generator for Node-RED", "homepage": "http://nodered.org", "main": "./lib/nodegen.js", @@ -10,7 +10,7 @@ "url": "git+https://github.com/node-red/node-red-nodegen.git" }, "engines": { - "node": ">=10" + "node": ">=14" }, "contributors": [ "Kazuhito Yokoi", @@ -44,30 +44,30 @@ "dependencies": { "ajv": "6.12.6", "api-spec-converter": "2.12.0", - "axios": "0.21.1", + "axios": "0.26.0", "colors": "1.4.0", - "crypto-js": "4.0.0", - "csv-string": "4.0.1", + "crypto-js": "4.1.1", + "csv-string": "4.1.0", "javascript-obfuscator": "1.12.1", "jimp": "0.16.1", "js-string-escape": "1.0.1", "minimist": "1.2.5", - "mustache": "4.1.0", + "mustache": "4.2.0", "swagger-js-codegen-formdata": "0.15.5", "yamljs": "0.3.0" }, "devDependencies": { "del": "6.0.0", - "grunt": "1.3.0", + "grunt": "1.4.1", "grunt-shell": "3.0.1", "grunt-simple-mocha": "0.4.1", "nyc": "15.1.0", - "node-red": "1.2.9", + "node-red": "2.2.2", "node-red-node-test-helper": "0.2.7", "q": "1.5.1", "should": "13.2.3", - "sinon": "10.0.0", - "supertest": "6.1.3" + "sinon": "13.0.1", + "supertest": "6.2.2" }, "bin": { "node-red-nodegen": "bin/node-red-nodegen.js" diff --git a/templates/function/package.json.mustache b/templates/function/package.json.mustache index 4b685ac..095a498 100644 --- a/templates/function/package.json.mustache +++ b/templates/function/package.json.mustache @@ -17,9 +17,9 @@ {{/keywords}} ], "devDependencies": { - "mocha": "^6.2.0", - "node-red": "^1.0.4", - "node-red-node-test-helper": "^0.2.3" + "mocha": "9.2.1", + "node-red": "2.2.2", + "node-red-node-test-helper": "0.2.7" }, "license": "Apache-2.0" } diff --git a/templates/subflow/package.json.mustache b/templates/subflow/package.json.mustache index 68d3bb4..4c86ef6 100644 --- a/templates/subflow/package.json.mustache +++ b/templates/subflow/package.json.mustache @@ -13,6 +13,6 @@ {{/keywords}} ], "dependencies": { - "crypto-js": "^4.0.0" + "crypto-js": "4.1.1" } } diff --git a/templates/subflow/subflow.js.mustache b/templates/subflow/subflow.js.mustache index e36b899..669f264 100644 --- a/templates/subflow/subflow.js.mustache +++ b/templates/subflow/subflow.js.mustache @@ -1,19 +1,3 @@ -/** - * Copyright JS Foundation and other contributors, http://js.foundation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - **/ - module.exports = function(RED) { const fs = require('fs'); const path = require("path"); diff --git a/templates/swagger/package.json.mustache b/templates/swagger/package.json.mustache index d4ba9e4..67049b0 100644 --- a/templates/swagger/package.json.mustache +++ b/templates/swagger/package.json.mustache @@ -19,12 +19,12 @@ "dependencies": { "q": "1.5.1", "request": "2.88.2", - "file-type": "12.1.0" + "file-type": "17.1.1" }, "devDependencies": { - "mocha": "^6.2.0", - "node-red": "^1.0.4", - "node-red-node-test-helper": "^0.2.3" + "mocha": "9.2.1", + "node-red": "2.2.2", + "node-red-node-test-helper": "0.2.7" }, "author": "{{&contactName}}", "license": "{{&licenseName}}" diff --git a/templates/webofthings/package.json.mustache b/templates/webofthings/package.json.mustache index 9fad4ad..d8b2020 100644 --- a/templates/webofthings/package.json.mustache +++ b/templates/webofthings/package.json.mustache @@ -17,16 +17,16 @@ {{/keywords}} ], "dependencies": { - "https-proxy-agent": "^5.0.0", - "request": "^2.88.2", - "ws": "^7.4.3", - "url-template": "^2.0.8", - "ajv": "^7.1.1", - "coap": "^0.24.0" + "https-proxy-agent": "5.0.0", + "request": "2.88.2", + "ws": "8.5.0", + "url-template": "3.0.0", + "ajv": "8.10.0", + "coap": "1.0.3" }, "devDependencies": { - "node-red": "^1.2.9", - "node-red-node-test-helper": "^0.2.7" + "node-red": "2.2.2", + "node-red-node-test-helper": "0.2.7" }, "license": "{{&licenseName}}", "wot": {