From 34e216c590380c63ab4ea2e80c2f6e2f7f5f0772 Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Sun, 4 Jun 2017 04:16:00 -0700 Subject: [PATCH] [javascript] Mark "fs" package as absent in browser in package.mustache --- .../src/main/resources/Javascript-es6/package.mustache | 3 +++ .../src/main/resources/Javascript/package.mustache | 3 +++ .../petstore-security-test/javascript/.swagger-codegen/VERSION | 1 + samples/client/petstore-security-test/javascript/package.json | 3 +++ .../client/petstore-security-test/javascript/src/ApiClient.js | 3 +++ .../petstore-security-test/javascript/src/api/FakeApi.js | 3 +++ samples/client/petstore-security-test/javascript/src/index.js | 3 +++ .../petstore-security-test/javascript/src/model/ModelReturn.js | 3 +++ samples/client/petstore/javascript-es6/package.json | 3 +++ samples/client/petstore/javascript-promise-es6/package.json | 3 +++ samples/client/petstore/javascript-promise/package.json | 3 +++ samples/client/petstore/javascript/package.json | 3 +++ 12 files changed, 34 insertions(+) create mode 100644 samples/client/petstore-security-test/javascript/.swagger-codegen/VERSION diff --git a/modules/swagger-codegen/src/main/resources/Javascript-es6/package.mustache b/modules/swagger-codegen/src/main/resources/Javascript-es6/package.mustache index 75ee4ebe252..0998928468f 100644 --- a/modules/swagger-codegen/src/main/resources/Javascript-es6/package.mustache +++ b/modules/swagger-codegen/src/main/resources/Javascript-es6/package.mustache @@ -7,6 +7,9 @@ "scripts": { "test": "mocha --compilers js:babel-core/register --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "babel": "^6.23.0", "babel-cli": "^6.24.1", diff --git a/modules/swagger-codegen/src/main/resources/Javascript/package.mustache b/modules/swagger-codegen/src/main/resources/Javascript/package.mustache index 8922c22b72d..bdb18166c75 100644 --- a/modules/swagger-codegen/src/main/resources/Javascript/package.mustache +++ b/modules/swagger-codegen/src/main/resources/Javascript/package.mustache @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" }, diff --git a/samples/client/petstore-security-test/javascript/.swagger-codegen/VERSION b/samples/client/petstore-security-test/javascript/.swagger-codegen/VERSION new file mode 100644 index 00000000000..7fea99011a6 --- /dev/null +++ b/samples/client/petstore-security-test/javascript/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.2.3-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore-security-test/javascript/package.json b/samples/client/petstore-security-test/javascript/package.json index f0e7cd77493..9bb9f494674 100644 --- a/samples/client/petstore-security-test/javascript/package.json +++ b/samples/client/petstore-security-test/javascript/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" }, diff --git a/samples/client/petstore-security-test/javascript/src/ApiClient.js b/samples/client/petstore-security-test/javascript/src/ApiClient.js index 46cb2e31e74..2f807b353f2 100644 --- a/samples/client/petstore-security-test/javascript/src/ApiClient.js +++ b/samples/client/petstore-security-test/javascript/src/ApiClient.js @@ -7,6 +7,9 @@ * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.2.3-SNAPSHOT + * * Do not edit the class manually. * */ diff --git a/samples/client/petstore-security-test/javascript/src/api/FakeApi.js b/samples/client/petstore-security-test/javascript/src/api/FakeApi.js index ce404353b35..7571d260f22 100644 --- a/samples/client/petstore-security-test/javascript/src/api/FakeApi.js +++ b/samples/client/petstore-security-test/javascript/src/api/FakeApi.js @@ -7,6 +7,9 @@ * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.2.3-SNAPSHOT + * * Do not edit the class manually. * */ diff --git a/samples/client/petstore-security-test/javascript/src/index.js b/samples/client/petstore-security-test/javascript/src/index.js index 03dc50ff27b..24c45e90a68 100644 --- a/samples/client/petstore-security-test/javascript/src/index.js +++ b/samples/client/petstore-security-test/javascript/src/index.js @@ -7,6 +7,9 @@ * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.2.3-SNAPSHOT + * * Do not edit the class manually. * */ diff --git a/samples/client/petstore-security-test/javascript/src/model/ModelReturn.js b/samples/client/petstore-security-test/javascript/src/model/ModelReturn.js index c6961f5673f..40043ceb412 100644 --- a/samples/client/petstore-security-test/javascript/src/model/ModelReturn.js +++ b/samples/client/petstore-security-test/javascript/src/model/ModelReturn.js @@ -7,6 +7,9 @@ * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git + * + * Swagger Codegen version: 2.2.3-SNAPSHOT + * * Do not edit the class manually. * */ diff --git a/samples/client/petstore/javascript-es6/package.json b/samples/client/petstore/javascript-es6/package.json index b7f9daa0ab5..881163c02f4 100644 --- a/samples/client/petstore/javascript-es6/package.json +++ b/samples/client/petstore/javascript-es6/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" }, diff --git a/samples/client/petstore/javascript-promise-es6/package.json b/samples/client/petstore/javascript-promise-es6/package.json index b7f9daa0ab5..881163c02f4 100644 --- a/samples/client/petstore/javascript-promise-es6/package.json +++ b/samples/client/petstore/javascript-promise-es6/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" }, diff --git a/samples/client/petstore/javascript-promise/package.json b/samples/client/petstore/javascript-promise/package.json index b7f9daa0ab5..881163c02f4 100644 --- a/samples/client/petstore/javascript-promise/package.json +++ b/samples/client/petstore/javascript-promise/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" }, diff --git a/samples/client/petstore/javascript/package.json b/samples/client/petstore/javascript/package.json index b7f9daa0ab5..881163c02f4 100644 --- a/samples/client/petstore/javascript/package.json +++ b/samples/client/petstore/javascript/package.json @@ -7,6 +7,9 @@ "scripts": { "test": "./node_modules/mocha/bin/mocha --recursive" }, + "browser": { + "fs": false + }, "dependencies": { "superagent": "3.5.2" },