@sailpoint/connector-sdk 1.1.30 → 1.1.31
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/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +1 -9
- package/dist/lib/config.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,UAAU,QAAa,QAAQ,GAAG,CAgB9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAe,GAAG,YAAY,MAAM,OAAO,KAAG,QAAQ,IAAI,CAGjF,CAAA"}
|
package/dist/lib/config.js
CHANGED
|
@@ -4,7 +4,6 @@ exports._withConfig = exports.readConfig = void 0;
|
|
|
4
4
|
/* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
|
|
5
5
|
const async_hooks_1 = require("async_hooks");
|
|
6
6
|
const _configState = new async_hooks_1.AsyncLocalStorage();
|
|
7
|
-
let _config = undefined;
|
|
8
7
|
/**
|
|
9
8
|
* Reads in connector config
|
|
10
9
|
*/
|
|
@@ -13,19 +12,12 @@ const readConfig = async () => {
|
|
|
13
12
|
if (store) {
|
|
14
13
|
return store.cfg;
|
|
15
14
|
}
|
|
16
|
-
if (_config != undefined) {
|
|
17
|
-
return _config;
|
|
18
|
-
}
|
|
19
15
|
const config = process.env['CONNECTOR_CONFIG'];
|
|
20
16
|
if (!config) {
|
|
21
17
|
throw new Error(`unexpected runtime error: missing connector config`);
|
|
22
18
|
}
|
|
23
19
|
try {
|
|
24
|
-
|
|
25
|
-
//Remove large config in process.env, which causes spawning new processes to fail
|
|
26
|
-
//due to inheriting an environment that is too large
|
|
27
|
-
delete process.env.CONNECTOR_CONFIG;
|
|
28
|
-
return _config;
|
|
20
|
+
return JSON.parse(Buffer.from(config, 'base64').toString());
|
|
29
21
|
}
|
|
30
22
|
catch (ignored) {
|
|
31
23
|
throw new Error(`unexpected runtime error: failed to parse connector config`);
|
package/dist/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAC3E,6CAAgD;AAMhD,MAAM,YAAY,GAAG,IAAI,+BAAiB,EAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAC3E,6CAAgD;AAMhD,MAAM,YAAY,GAAG,IAAI,+BAAiB,EAAe,CAAC;AAE1D;;GAEG;AACI,MAAM,UAAU,GAAG,KAAK,IAAkB,EAAE;IAClD,MAAM,KAAK,GAA4B,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/D,IAAI,KAAK,EAAE;QACV,OAAO,KAAK,CAAC,GAAG,CAAC;KACjB;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;IAC9C,IAAI,CAAC,MAAM,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;KACrE;IAED,IAAI;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;KAC3D;IAAC,OAAO,OAAO,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAA;KAC7E;AACF,CAAC,CAAA;AAhBY,QAAA,UAAU,cAgBtB;AAED;;;GAGG;AACI,MAAM,WAAW,GAAG,KAAK,EAAE,GAAQ,EAAE,QAAuB,EAAiB,EAAE;IACrF,MAAM,QAAQ,GAAgB,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC3C,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC5C,CAAC,CAAA;AAHY,QAAA,WAAW,eAGvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sailpoint/connector-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "JavaScript framework to build SailPoint Connectors",
|
|
5
5
|
"author": "SailPoint Technologies, Inc.",
|
|
6
6
|
"license": "Copyright (c) 2023. SailPoint Technologies, Inc. All rights reserved.",
|