@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.
- package/index.js +1 -1
- package/index.ts +1 -1
- 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"
|