@jsforce/jsforce-node 3.0.0-next.3 → 3.1.0
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/core.d.ts +0 -1
- package/lib/core.js +0 -1
- package/lib/jsforce.d.ts +0 -2
- package/lib/jsforce.js +0 -2
- package/package.json +1 -1
- package/lib/jwtOAuth2.d.ts +0 -8
- package/lib/jwtOAuth2.js +0 -23
package/lib/core.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import VERSION from './VERSION';
|
|
|
6
6
|
import RecordReference from './record-reference';
|
|
7
7
|
import RecordStream from './record-stream';
|
|
8
8
|
export * from './oauth2';
|
|
9
|
-
export * from './jwtOAuth2';
|
|
10
9
|
export * from './connection';
|
|
11
10
|
export * from './query';
|
|
12
11
|
export * from './quick-action';
|
package/lib/core.js
CHANGED
|
@@ -46,7 +46,6 @@ exports.RecordReference = record_reference_1.default;
|
|
|
46
46
|
const record_stream_1 = __importDefault(require("./record-stream"));
|
|
47
47
|
exports.RecordStream = record_stream_1.default;
|
|
48
48
|
__exportStar(require("./oauth2"), exports);
|
|
49
|
-
__exportStar(require("./jwtOAuth2"), exports);
|
|
50
49
|
__exportStar(require("./connection"), exports);
|
|
51
50
|
__exportStar(require("./query"), exports);
|
|
52
51
|
__exportStar(require("./quick-action"), exports);
|
package/lib/jsforce.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import OAuth2 from './oauth2';
|
|
|
6
6
|
import SfDate from './date';
|
|
7
7
|
import { Registry } from './registry';
|
|
8
8
|
import { BrowserClient } from './browser/client';
|
|
9
|
-
import { JwtOAuth2 } from './jwtOAuth2';
|
|
10
9
|
/**
|
|
11
10
|
*
|
|
12
11
|
*/
|
|
@@ -14,7 +13,6 @@ declare class JSforce extends EventEmitter {
|
|
|
14
13
|
VERSION: typeof VERSION;
|
|
15
14
|
Connection: typeof Connection;
|
|
16
15
|
OAuth2: typeof OAuth2;
|
|
17
|
-
JwtOAuth2: typeof JwtOAuth2;
|
|
18
16
|
SfDate: typeof SfDate;
|
|
19
17
|
Date: typeof SfDate;
|
|
20
18
|
BrowserClient: typeof BrowserClient;
|
package/lib/jsforce.js
CHANGED
|
@@ -34,7 +34,6 @@ const oauth2_1 = __importDefault(require("./oauth2"));
|
|
|
34
34
|
const date_1 = __importDefault(require("./date"));
|
|
35
35
|
const registry_1 = __importDefault(require("./registry"));
|
|
36
36
|
const client_1 = __importStar(require("./browser/client"));
|
|
37
|
-
const jwtOAuth2_1 = require("./jwtOAuth2");
|
|
38
37
|
/**
|
|
39
38
|
*
|
|
40
39
|
*/
|
|
@@ -42,7 +41,6 @@ class JSforce extends events_1.EventEmitter {
|
|
|
42
41
|
VERSION = VERSION_1.default;
|
|
43
42
|
Connection = connection_1.default;
|
|
44
43
|
OAuth2 = oauth2_1.default;
|
|
45
|
-
JwtOAuth2 = jwtOAuth2_1.JwtOAuth2;
|
|
46
44
|
SfDate = date_1.default;
|
|
47
45
|
Date = date_1.default;
|
|
48
46
|
BrowserClient = client_1.BrowserClient;
|
package/package.json
CHANGED
package/lib/jwtOAuth2.d.ts
DELETED
package/lib/jwtOAuth2.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.JwtOAuth2 = void 0;
|
|
7
|
-
const oauth2_1 = __importDefault(require("./oauth2"));
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated
|
|
10
|
-
*/
|
|
11
|
-
class JwtOAuth2 extends oauth2_1.default {
|
|
12
|
-
constructor(config) {
|
|
13
|
-
console.warn('JwtOAuth2 is deprecated and will be removed in next stable release, please use OAuth2 instead.');
|
|
14
|
-
super(config);
|
|
15
|
-
}
|
|
16
|
-
jwtAuthorize(innerToken) {
|
|
17
|
-
return super._postParams({
|
|
18
|
-
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer',
|
|
19
|
-
assertion: innerToken,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.JwtOAuth2 = JwtOAuth2;
|