Skip to content

Commit fe98af5

Browse files
authored
Merge pull request #364 from Lynnux-useless-codes/httpSetBody_nolonger_needs_JSON_body
$httpSetBody no longer converts body into JSON
2 parents 3e306b8 + 55b10c7 commit fe98af5

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

dist/native/formatting/subtext.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/formatting/subtext.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/formatting/subtext.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/http/httpSetBody.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare const _default: NativeFunction<[{
44
description: string;
55
rest: false;
66
required: true;
7-
type: ArgType.Json;
7+
type: ArgType.String;
88
}], true>;
99
export default _default;
1010
//# sourceMappingURL=httpSetBody.d.ts.map

dist/native/http/httpSetBody.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/http/httpSetBody.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/native/http/httpSetBody.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default new NativeFunction({
1111
description: "The JSON body",
1212
rest: false,
1313
required: true,
14-
type: ArgType.Json,
14+
type: ArgType.String,
1515
},
1616
],
1717
unwrap: true,
1818
brackets: true,
19-
execute(ctx, [json]) {
20-
ctx.http.body = JSON.stringify(json)
19+
execute(ctx, [body]) {
20+
ctx.http.body = body
2121
return this.success()
2222
},
2323
})

0 commit comments

Comments
 (0)