@jsforce/jsforce-node 3.10.9 → 3.10.11
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/lib/VERSION.d.ts +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/oauth2.d.ts +8 -0
- package/lib/util/stream.js +7 -5
- package/package.json +1 -1
package/lib/VERSION.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "3.10.
|
|
1
|
+
declare const _default: "3.10.10";
|
|
2
2
|
export default _default;
|
package/lib/VERSION.js
CHANGED
package/lib/oauth2.d.ts
CHANGED
|
@@ -24,6 +24,14 @@ export type AuthzRequestParams = {
|
|
|
24
24
|
};
|
|
25
25
|
export type TokenResponse = {
|
|
26
26
|
token_type: 'Bearer';
|
|
27
|
+
/**
|
|
28
|
+
* Space-separated list of OAuth scopes associated with the access token
|
|
29
|
+
*
|
|
30
|
+
* For the OAuth 2.0 Web Server Flow, this can be a subset of the registered scopes if specified when requesting the auth code.
|
|
31
|
+
*
|
|
32
|
+
* See: https://help.salesforce.com/s/articleView?id=xcloud.remoteaccess_oauth_tokens_scopes.htm&type=5
|
|
33
|
+
*/
|
|
34
|
+
scope: string;
|
|
27
35
|
/**
|
|
28
36
|
* Identity URL
|
|
29
37
|
*
|
package/lib/util/stream.js
CHANGED
|
@@ -18,21 +18,23 @@ function createLazyStream() {
|
|
|
18
18
|
}
|
|
19
19
|
exports.createLazyStream = createLazyStream;
|
|
20
20
|
class MemoryWriteStream extends stream_1.Writable {
|
|
21
|
-
|
|
21
|
+
_chunks;
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
24
|
-
this.
|
|
24
|
+
this._chunks = [];
|
|
25
25
|
}
|
|
26
26
|
_write(chunk, encoding, callback) {
|
|
27
|
-
this.
|
|
27
|
+
this._chunks.push(chunk);
|
|
28
28
|
callback();
|
|
29
29
|
}
|
|
30
30
|
_writev(data, callback) {
|
|
31
|
-
|
|
31
|
+
for (const { chunk } of data) {
|
|
32
|
+
this._chunks.push(chunk);
|
|
33
|
+
}
|
|
32
34
|
callback();
|
|
33
35
|
}
|
|
34
36
|
toString(encoding = 'utf-8') {
|
|
35
|
-
return this.
|
|
37
|
+
return Buffer.concat(this._chunks).toString(encoding);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
async function readAll(rs, encoding = 'utf-8') {
|