@salesforce/core-bundle 8.11.0 → 8.11.2
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/index.js +43 -14
- package/lib/pino-file.js +13 -10
- package/lib/pino-worker.js +18 -6133
- package/package.json +3 -3
package/lib/index.js
CHANGED
@@ -5191,11 +5191,12 @@ var require_transport = __commonJS({
|
|
5191
5191
|
onExit.unregister(stream);
|
5192
5192
|
});
|
5193
5193
|
}
|
5194
|
-
function buildStream(filename, workerData, workerOpts) {
|
5194
|
+
function buildStream(filename, workerData, workerOpts, sync) {
|
5195
5195
|
const stream = new ThreadStream({
|
5196
5196
|
filename,
|
5197
5197
|
workerData,
|
5198
|
-
workerOpts
|
5198
|
+
workerOpts,
|
5199
|
+
sync
|
5199
5200
|
});
|
5200
5201
|
stream.on("ready", onReady);
|
5201
5202
|
stream.on("close", function() {
|
@@ -5231,7 +5232,7 @@ var require_transport = __commonJS({
|
|
5231
5232
|
stream.flushSync();
|
5232
5233
|
}
|
5233
5234
|
function transport(fullOptions) {
|
5234
|
-
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers() } = fullOptions;
|
5235
|
+
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers(), sync = false } = fullOptions;
|
5235
5236
|
const options = {
|
5236
5237
|
...fullOptions.options
|
5237
5238
|
};
|
@@ -5275,7 +5276,7 @@ var require_transport = __commonJS({
|
|
5275
5276
|
options.dedupe = dedupe;
|
5276
5277
|
}
|
5277
5278
|
options.pinoWillSendConfig = true;
|
5278
|
-
return buildStream(fixTarget(target), options, worker);
|
5279
|
+
return buildStream(fixTarget(target), options, worker, sync);
|
5279
5280
|
function fixTarget(origin) {
|
5280
5281
|
origin = bundlerOverrides[origin] || origin;
|
5281
5282
|
if (isAbsolute(origin) || origin.indexOf("file://") === 0) {
|
@@ -5499,11 +5500,10 @@ var require_tools = __commonJS({
|
|
5499
5500
|
function hasBeenTampered(stream) {
|
5500
5501
|
return stream.write !== stream.constructor.prototype.write;
|
5501
5502
|
}
|
5502
|
-
var hasNodeCodeCoverage = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE;
|
5503
5503
|
function buildSafeSonicBoom(opts) {
|
5504
5504
|
const stream = new SonicBoom(opts);
|
5505
5505
|
stream.on("error", filterBrokenPipe);
|
5506
|
-
if (!
|
5506
|
+
if (!opts.sync && isMainThread) {
|
5507
5507
|
onExit.register(stream, autoEnd);
|
5508
5508
|
stream.on("close", function() {
|
5509
5509
|
onExit.unregister(stream);
|
@@ -5842,7 +5842,7 @@ var require_levels = __commonJS({
|
|
5842
5842
|
var require_meta = __commonJS({
|
5843
5843
|
"node_modules/pino/lib/meta.js"(exports2, module2) {
|
5844
5844
|
"use strict";
|
5845
|
-
module2.exports = { version: "9.
|
5845
|
+
module2.exports = { version: "9.7.0" };
|
5846
5846
|
}
|
5847
5847
|
});
|
5848
5848
|
|
@@ -5875,7 +5875,8 @@ var require_proto = __commonJS({
|
|
5875
5875
|
stringifySym,
|
5876
5876
|
formatOptsSym,
|
5877
5877
|
stringifiersSym,
|
5878
|
-
msgPrefixSym
|
5878
|
+
msgPrefixSym,
|
5879
|
+
hooksSym
|
5879
5880
|
} = require_symbols();
|
5880
5881
|
var {
|
5881
5882
|
getLevel,
|
@@ -6015,6 +6016,7 @@ var require_proto = __commonJS({
|
|
6015
6016
|
const messageKey = this[messageKeySym];
|
6016
6017
|
const mixinMergeStrategy = this[mixinMergeStrategySym] || defaultMixinMergeStrategy;
|
6017
6018
|
let obj;
|
6019
|
+
const streamWriteHook = this[hooksSym].streamWrite;
|
6018
6020
|
if (_obj === void 0 || _obj === null) {
|
6019
6021
|
obj = {};
|
6020
6022
|
} else if (_obj instanceof Error) {
|
@@ -6040,7 +6042,7 @@ var require_proto = __commonJS({
|
|
6040
6042
|
stream.lastTime = t.slice(this[timeSliceIndexSym]);
|
6041
6043
|
stream.lastLogger = this;
|
6042
6044
|
}
|
6043
|
-
stream.write(s);
|
6045
|
+
stream.write(streamWriteHook ? streamWriteHook(s) : s);
|
6044
6046
|
}
|
6045
6047
|
function noop() {
|
6046
6048
|
}
|
@@ -6878,7 +6880,8 @@ var require_pino = __commonJS({
|
|
6878
6880
|
}
|
6879
6881
|
}),
|
6880
6882
|
hooks: {
|
6881
|
-
logMethod: void 0
|
6883
|
+
logMethod: void 0,
|
6884
|
+
streamWrite: void 0
|
6882
6885
|
},
|
6883
6886
|
timestamp: epochTime,
|
6884
6887
|
name: void 0,
|
@@ -12316,7 +12319,7 @@ var require_package2 = __commonJS({
|
|
12316
12319
|
"package.json"(exports2, module2) {
|
12317
12320
|
module2.exports = {
|
12318
12321
|
name: "@salesforce/core-bundle",
|
12319
|
-
version: "8.11.
|
12322
|
+
version: "8.11.2",
|
12320
12323
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
12321
12324
|
main: "lib/index",
|
12322
12325
|
types: "lib/index.d.ts",
|
@@ -12353,7 +12356,7 @@ var require_package2 = __commonJS({
|
|
12353
12356
|
"messageTransformer/messageTransformer.ts"
|
12354
12357
|
],
|
12355
12358
|
dependencies: {
|
12356
|
-
"@jsforce/jsforce-node": "^3.8.
|
12359
|
+
"@jsforce/jsforce-node": "^3.8.2",
|
12357
12360
|
"@salesforce/kit": "^3.2.2",
|
12358
12361
|
"@salesforce/schemas": "^1.9.0",
|
12359
12362
|
"@salesforce/ts-types": "^2.0.10",
|
@@ -12365,7 +12368,7 @@ var require_package2 = __commonJS({
|
|
12365
12368
|
js2xmlparser: "^4.0.1",
|
12366
12369
|
jsonwebtoken: "9.0.2",
|
12367
12370
|
jszip: "3.10.1",
|
12368
|
-
pino: "^9.
|
12371
|
+
pino: "^9.7.0",
|
12369
12372
|
"pino-abstract-transport": "^1.2.0",
|
12370
12373
|
"pino-pretty": "^11.2.2",
|
12371
12374
|
"proper-lockfile": "^4.1.2",
|
@@ -33054,7 +33057,7 @@ var require_VERSION = __commonJS({
|
|
33054
33057
|
"node_modules/@jsforce/jsforce-node/lib/VERSION.js"(exports2) {
|
33055
33058
|
"use strict";
|
33056
33059
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
33057
|
-
exports2.default = "3.8.
|
33060
|
+
exports2.default = "3.8.2";
|
33058
33061
|
}
|
33059
33062
|
});
|
33060
33063
|
|
@@ -51981,6 +51984,28 @@ var require_chatter = __commonJS({
|
|
51981
51984
|
}
|
51982
51985
|
});
|
51983
51986
|
|
51987
|
+
// node_modules/@jsforce/jsforce-node/lib/util/jwt.js
|
51988
|
+
var require_jwt = __commonJS({
|
51989
|
+
"node_modules/@jsforce/jsforce-node/lib/util/jwt.js"(exports2) {
|
51990
|
+
"use strict";
|
51991
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
51992
|
+
exports2.isJWTToken = void 0;
|
51993
|
+
function isJWTToken(accessToken) {
|
51994
|
+
const parts = accessToken.split(".");
|
51995
|
+
if (parts.length !== 3)
|
51996
|
+
return false;
|
51997
|
+
const header = parts[0];
|
51998
|
+
try {
|
51999
|
+
JSON.parse(atob(header));
|
52000
|
+
return true;
|
52001
|
+
} catch (err) {
|
52002
|
+
return false;
|
52003
|
+
}
|
52004
|
+
}
|
52005
|
+
exports2.isJWTToken = isJWTToken;
|
52006
|
+
}
|
52007
|
+
});
|
52008
|
+
|
51984
52009
|
// node_modules/@jsforce/jsforce-node/lib/soap.js
|
51985
52010
|
var require_soap = __commonJS({
|
51986
52011
|
"node_modules/@jsforce/jsforce-node/lib/soap.js"(exports2) {
|
@@ -51993,6 +52018,7 @@ var require_soap = __commonJS({
|
|
51993
52018
|
var http_api_1 = __importDefault3(require_http_api());
|
51994
52019
|
var function_1 = require_function2();
|
51995
52020
|
var get_body_size_1 = require_get_body_size();
|
52021
|
+
var jwt_1 = require_jwt();
|
51996
52022
|
function getPropsSchema(schema, schemaDict) {
|
51997
52023
|
if (schema.extends && schemaDict[schema.extends]) {
|
51998
52024
|
const extendSchema = schemaDict[schema.extends];
|
@@ -52112,6 +52138,9 @@ var require_soap = __commonJS({
|
|
52112
52138
|
_xmlns;
|
52113
52139
|
constructor(conn, options) {
|
52114
52140
|
super(conn, options);
|
52141
|
+
if (this._conn.accessToken && (0, jwt_1.isJWTToken)(this._conn.accessToken)) {
|
52142
|
+
throw new Error('SOAP API does not support JWT-based access tokens. You must disable the "Issue JSON Web Token (JWT)-based access tokens" setting in your Connected App or External Client App');
|
52143
|
+
}
|
52115
52144
|
this._endpointUrl = options.endpointUrl;
|
52116
52145
|
this._xmlns = options.xmlns || "urn:partner.soap.sforce.com";
|
52117
52146
|
}
|
package/lib/pino-file.js
CHANGED
@@ -2486,11 +2486,12 @@ var require_transport = __commonJS({
|
|
2486
2486
|
onExit.unregister(stream);
|
2487
2487
|
});
|
2488
2488
|
}
|
2489
|
-
function buildStream(filename, workerData, workerOpts) {
|
2489
|
+
function buildStream(filename, workerData, workerOpts, sync) {
|
2490
2490
|
const stream = new ThreadStream({
|
2491
2491
|
filename,
|
2492
2492
|
workerData,
|
2493
|
-
workerOpts
|
2493
|
+
workerOpts,
|
2494
|
+
sync
|
2494
2495
|
});
|
2495
2496
|
stream.on("ready", onReady);
|
2496
2497
|
stream.on("close", function() {
|
@@ -2526,7 +2527,7 @@ var require_transport = __commonJS({
|
|
2526
2527
|
stream.flushSync();
|
2527
2528
|
}
|
2528
2529
|
function transport(fullOptions) {
|
2529
|
-
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers() } = fullOptions;
|
2530
|
+
const { pipeline, targets, levels, dedupe, worker = {}, caller = getCallers(), sync = false } = fullOptions;
|
2530
2531
|
const options = {
|
2531
2532
|
...fullOptions.options
|
2532
2533
|
};
|
@@ -2570,7 +2571,7 @@ var require_transport = __commonJS({
|
|
2570
2571
|
options.dedupe = dedupe;
|
2571
2572
|
}
|
2572
2573
|
options.pinoWillSendConfig = true;
|
2573
|
-
return buildStream(fixTarget(target), options, worker);
|
2574
|
+
return buildStream(fixTarget(target), options, worker, sync);
|
2574
2575
|
function fixTarget(origin) {
|
2575
2576
|
origin = bundlerOverrides[origin] || origin;
|
2576
2577
|
if (isAbsolute(origin) || origin.indexOf("file://") === 0) {
|
@@ -2794,11 +2795,10 @@ var require_tools = __commonJS({
|
|
2794
2795
|
function hasBeenTampered(stream) {
|
2795
2796
|
return stream.write !== stream.constructor.prototype.write;
|
2796
2797
|
}
|
2797
|
-
var hasNodeCodeCoverage = process.env.NODE_V8_COVERAGE || process.env.V8_COVERAGE;
|
2798
2798
|
function buildSafeSonicBoom(opts) {
|
2799
2799
|
const stream = new SonicBoom(opts);
|
2800
2800
|
stream.on("error", filterBrokenPipe);
|
2801
|
-
if (!
|
2801
|
+
if (!opts.sync && isMainThread) {
|
2802
2802
|
onExit.register(stream, autoEnd);
|
2803
2803
|
stream.on("close", function() {
|
2804
2804
|
onExit.unregister(stream);
|
@@ -3137,7 +3137,7 @@ var require_levels = __commonJS({
|
|
3137
3137
|
var require_meta = __commonJS({
|
3138
3138
|
"node_modules/pino/lib/meta.js"(exports2, module2) {
|
3139
3139
|
"use strict";
|
3140
|
-
module2.exports = { version: "9.
|
3140
|
+
module2.exports = { version: "9.7.0" };
|
3141
3141
|
}
|
3142
3142
|
});
|
3143
3143
|
|
@@ -3170,7 +3170,8 @@ var require_proto = __commonJS({
|
|
3170
3170
|
stringifySym,
|
3171
3171
|
formatOptsSym,
|
3172
3172
|
stringifiersSym,
|
3173
|
-
msgPrefixSym
|
3173
|
+
msgPrefixSym,
|
3174
|
+
hooksSym
|
3174
3175
|
} = require_symbols();
|
3175
3176
|
var {
|
3176
3177
|
getLevel,
|
@@ -3310,6 +3311,7 @@ var require_proto = __commonJS({
|
|
3310
3311
|
const messageKey = this[messageKeySym];
|
3311
3312
|
const mixinMergeStrategy = this[mixinMergeStrategySym] || defaultMixinMergeStrategy;
|
3312
3313
|
let obj;
|
3314
|
+
const streamWriteHook = this[hooksSym].streamWrite;
|
3313
3315
|
if (_obj === void 0 || _obj === null) {
|
3314
3316
|
obj = {};
|
3315
3317
|
} else if (_obj instanceof Error) {
|
@@ -3335,7 +3337,7 @@ var require_proto = __commonJS({
|
|
3335
3337
|
stream.lastTime = t.slice(this[timeSliceIndexSym]);
|
3336
3338
|
stream.lastLogger = this;
|
3337
3339
|
}
|
3338
|
-
stream.write(s);
|
3340
|
+
stream.write(streamWriteHook ? streamWriteHook(s) : s);
|
3339
3341
|
}
|
3340
3342
|
function noop() {
|
3341
3343
|
}
|
@@ -4173,7 +4175,8 @@ var require_pino = __commonJS({
|
|
4173
4175
|
}
|
4174
4176
|
}),
|
4175
4177
|
hooks: {
|
4176
|
-
logMethod: void 0
|
4178
|
+
logMethod: void 0,
|
4179
|
+
streamWrite: void 0
|
4177
4180
|
},
|
4178
4181
|
timestamp: epochTime,
|
4179
4182
|
name: void 0,
|