@jd-data-limited/easy-fm 1.1.3-alpha3 → 1.1.3-alpha4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.ts +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -218,7 +218,7 @@ class layout {
218
218
  return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
219
219
  let url = `${this.endpoint}/script/${encodeURIComponent(script.name)}`;
220
220
  if (script.parameter)
221
- url += "?" + encodeURIComponent(script.parameter);
221
+ url += "?script.param=" + encodeURIComponent(script.parameter);
222
222
  this.database.apiRequest(url, {
223
223
  port: 443,
224
224
  method: "GET"
package/index.ts CHANGED
@@ -302,7 +302,7 @@ class layout {
302
302
  runScript(script): Promise<string | FMError | Error> {
303
303
  return new Promise(async (resolve, reject) => {
304
304
  let url = `${this.endpoint}/script/${encodeURIComponent(script.name)}`
305
- if (script.parameter) url += "?" + encodeURIComponent(script.parameter)
305
+ if (script.parameter) url += "?script.param=" + encodeURIComponent(script.parameter)
306
306
  this.database.apiRequest(url, {
307
307
  port: 443,
308
308
  method: "GET"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "1.1.3alpha3",
3
+ "version": "1.1.3alpha4",
4
4
  "dependencies": {
5
5
  "@types/btoa": "^1.2.3",
6
6
  "@types/events": "^3.0.0",