Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -10,7 +10,7 @@
"url": "git+https://github.com/node-red/node-red-nodegen.git"
},
"engines": {
"node": ">=10"
"node": ">=14"
},
"contributors": [
"Kazuhito Yokoi",
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions templates/function/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion templates/subflow/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
{{/keywords}}
],
"dependencies": {
"crypto-js": "^4.0.0"
"crypto-js": "4.1.1"
}
}
16 changes: 0 additions & 16 deletions templates/subflow/subflow.js.mustache
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
8 changes: 4 additions & 4 deletions templates/swagger/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down
16 changes: 8 additions & 8 deletions templates/webofthings/package.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down