@contrast/assess 1.37.0 → 1.38.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/crypto-analysis/install/crypto.js +1 -1
- package/lib/dataflow/propagation/install/JSON/parse.js +1 -0
- package/lib/dataflow/propagation/install/JSON/stringify.js +1 -0
- package/lib/dataflow/propagation/install/array-prototype-join.js +1 -0
- package/lib/dataflow/propagation/install/buffer.js +1 -0
- package/lib/dataflow/propagation/install/contrast-methods/number.js +1 -0
- package/lib/dataflow/propagation/install/contrast-methods/string.js +1 -0
- package/lib/dataflow/propagation/install/contrast-methods/tag.js +1 -0
- package/lib/dataflow/propagation/install/decode-uri-component.js +1 -0
- package/lib/dataflow/propagation/install/ejs/escape-xml.js +1 -0
- package/lib/dataflow/propagation/install/ejs/template.js +1 -0
- package/lib/dataflow/propagation/install/encode-uri.js +1 -0
- package/lib/dataflow/propagation/install/escape-html.js +1 -0
- package/lib/dataflow/propagation/install/escape.js +1 -0
- package/lib/dataflow/propagation/install/fastify-send.js +1 -0
- package/lib/dataflow/propagation/install/handlebars-utils-escape-expression.js +1 -0
- package/lib/dataflow/propagation/install/isnumeric-0.js +1 -0
- package/lib/dataflow/propagation/install/joi/boolean.js +2 -1
- package/lib/dataflow/propagation/install/joi/expression.js +2 -1
- package/lib/dataflow/propagation/install/joi/index.js +3 -1
- package/lib/dataflow/propagation/install/joi/keys.js +1 -0
- package/lib/dataflow/propagation/install/joi/number.js +2 -1
- package/lib/dataflow/propagation/install/joi/string-schema.js +3 -1
- package/lib/dataflow/propagation/install/joi/values.js +2 -1
- package/lib/dataflow/propagation/install/mongoose/schema-map.js +2 -0
- package/lib/dataflow/propagation/install/mongoose/schema-mixed.js +2 -0
- package/lib/dataflow/propagation/install/mongoose/schema-string.js +5 -0
- package/lib/dataflow/propagation/install/mustache-escape.js +1 -0
- package/lib/dataflow/propagation/install/mysql-connection-escape.js +3 -0
- package/lib/dataflow/propagation/install/parse-int.js +1 -0
- package/lib/dataflow/propagation/install/path/basename.js +1 -0
- package/lib/dataflow/propagation/install/path/dirname.js +1 -0
- package/lib/dataflow/propagation/install/path/extname.js +1 -0
- package/lib/dataflow/propagation/install/path/format.js +1 -0
- package/lib/dataflow/propagation/install/path/join-and-resolve.js +1 -0
- package/lib/dataflow/propagation/install/path/normalize.js +1 -0
- package/lib/dataflow/propagation/install/path/parse.js +2 -1
- package/lib/dataflow/propagation/install/path/relative.js +1 -0
- package/lib/dataflow/propagation/install/path/toNamespacedPath.js +1 -0
- package/lib/dataflow/propagation/install/pug/index.js +1 -0
- package/lib/dataflow/propagation/install/pug-runtime-escape.js +1 -0
- package/lib/dataflow/propagation/install/querystring/escape.js +2 -1
- package/lib/dataflow/propagation/install/querystring/parse.js +1 -0
- package/lib/dataflow/propagation/install/querystring/stringify.js +2 -1
- package/lib/dataflow/propagation/install/reg-exp-prototype-exec.js +1 -0
- package/lib/dataflow/propagation/install/send.js +1 -0
- package/lib/dataflow/propagation/install/sequelize/query-generator.js +1 -0
- package/lib/dataflow/propagation/install/sequelize/sql-string.js +1 -0
- package/lib/dataflow/propagation/install/sql-template-strings.js +1 -0
- package/lib/dataflow/propagation/install/string/concat.js +1 -1
- package/lib/dataflow/propagation/install/string/format-methods.js +1 -1
- package/lib/dataflow/propagation/install/string/html-methods.js +1 -1
- package/lib/dataflow/propagation/install/string/index.js +1 -1
- package/lib/dataflow/propagation/install/string/match-all.js +1 -1
- package/lib/dataflow/propagation/install/string/match.js +1 -1
- package/lib/dataflow/propagation/install/string/replace.js +1 -1
- package/lib/dataflow/propagation/install/string/slice.js +1 -1
- package/lib/dataflow/propagation/install/string/split.js +1 -1
- package/lib/dataflow/propagation/install/string/substring.js +1 -1
- package/lib/dataflow/propagation/install/string/trim.js +3 -3
- package/lib/dataflow/propagation/install/unescape.js +1 -0
- package/lib/dataflow/propagation/install/url/domain-parsers.js +1 -0
- package/lib/dataflow/propagation/install/url/parse.js +2 -1
- package/lib/dataflow/propagation/install/url/searchParams.js +3 -1
- package/lib/dataflow/propagation/install/url/url.js +2 -1
- package/lib/dataflow/propagation/install/util-format.js +1 -0
- package/lib/dataflow/propagation/install/validator/hooks.js +2 -0
- package/lib/dataflow/sinks/install/child-process.js +1 -1
- package/lib/dataflow/sinks/install/express/unvalidated-redirect.js +1 -1
- package/lib/dataflow/sinks/install/fastify/unvalidated-redirect.js +1 -1
- package/lib/dataflow/sinks/install/fs-original.js +170 -0
- package/lib/dataflow/sinks/install/fs.js +1 -1
- package/lib/dataflow/sinks/install/function.js +1 -1
- package/lib/dataflow/sinks/install/hapi/unvalidated-redirect.js +1 -1
- package/lib/dataflow/sinks/install/http/request.js +1 -1
- package/lib/dataflow/sinks/install/koa/unvalidated-redirect.js +1 -1
- package/lib/dataflow/sinks/install/libxmljs.js +1 -1
- package/lib/dataflow/sinks/install/marsdb.js +1 -1
- package/lib/dataflow/sinks/install/mongodb.js +1 -1
- package/lib/dataflow/sinks/install/mysql.js +1 -1
- package/lib/dataflow/sinks/install/postgres.js +1 -1
- package/lib/dataflow/sinks/install/sequelize.js +1 -1
- package/lib/dataflow/sinks/install/vm.js +1 -1
- package/lib/sampler.js +1 -1
- package/lib/sampler.test.js +10 -5
- package/lib/session-configuration/install/express-session.js +1 -1
- package/lib/session-configuration/install/fastify-cookie.js +1 -1
- package/lib/session-configuration/install/hapi.js +1 -1
- package/lib/session-configuration/install/koa.js +1 -1
- package/package.json +9 -9
|
@@ -50,7 +50,7 @@ const SAFE_HASH_ALGORITHMS = new Set([
|
|
|
50
50
|
'sha512',
|
|
51
51
|
'sha512withrsaencryption',
|
|
52
52
|
]);
|
|
53
|
-
const SAFE_HASH_LIBS = ['etag', 'browserify', 'deps-sort'];
|
|
53
|
+
const SAFE_HASH_LIBS = ['etag', 'browserify', 'deps-sort', 'cookie-signature'];
|
|
54
54
|
const SAFE_CIPHER_ALGORITHM_PREFIXES = ['des-ede', 'id-aes', 'aes', 'rsa'];
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -82,6 +82,7 @@ module.exports = function(core) {
|
|
|
82
82
|
patcher.patch(global.Buffer, 'from', {
|
|
83
83
|
patchType,
|
|
84
84
|
name: bufferFrom,
|
|
85
|
+
usePerf: 'sync',
|
|
85
86
|
post(data) {
|
|
86
87
|
const firstArg = data.args[0];
|
|
87
88
|
const argType = isString(firstArg) ? 'string' : Buffer.isBuffer(firstArg) ? 'buffer' : null;
|
|
@@ -39,6 +39,7 @@ module.exports = function(core) {
|
|
|
39
39
|
patcher.patch(handlebars.Utils, 'escapeExpression', {
|
|
40
40
|
name,
|
|
41
41
|
patchType,
|
|
42
|
+
usePerf: 'sync',
|
|
42
43
|
post(data) {
|
|
43
44
|
const { args, result, hooked, orig } = data;
|
|
44
45
|
if (!result || !args[0] || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -26,7 +26,7 @@ module.exports = function(core) {
|
|
|
26
26
|
patcher,
|
|
27
27
|
assess: {
|
|
28
28
|
getSourceContext,
|
|
29
|
-
inspect, //
|
|
29
|
+
inspect, // TODO NODE-3455: remove
|
|
30
30
|
eventFactory: { createPropagationEvent },
|
|
31
31
|
dataflow: { tracker },
|
|
32
32
|
},
|
|
@@ -45,6 +45,7 @@ module.exports = function(core) {
|
|
|
45
45
|
patcher.patch(def.coerce, 'method', {
|
|
46
46
|
name: 'joi.boolean.coerce',
|
|
47
47
|
patchType,
|
|
48
|
+
usePerf: 'sync',
|
|
48
49
|
post(data) {
|
|
49
50
|
if (
|
|
50
51
|
!data.result?.value ||
|
|
@@ -24,7 +24,7 @@ module.exports = function(core) {
|
|
|
24
24
|
patcher,
|
|
25
25
|
assess: {
|
|
26
26
|
getSourceContext,
|
|
27
|
-
inspect, //
|
|
27
|
+
inspect, // TODO NODE-3455: remove
|
|
28
28
|
eventFactory: { createPropagationEvent },
|
|
29
29
|
dataflow: { tracker },
|
|
30
30
|
},
|
|
@@ -38,6 +38,7 @@ module.exports = function(core) {
|
|
|
38
38
|
return patcher.patch(joi, method, {
|
|
39
39
|
name: `joi.${method}`,
|
|
40
40
|
patchType,
|
|
41
|
+
usePerf: 'sync',
|
|
41
42
|
post(data) {
|
|
42
43
|
if (!data.result || !getSourceContext()) return;
|
|
43
44
|
|
|
@@ -29,7 +29,7 @@ module.exports = function(core) {
|
|
|
29
29
|
patcher,
|
|
30
30
|
assess: {
|
|
31
31
|
getSourceContext,
|
|
32
|
-
inspect, //
|
|
32
|
+
inspect, // TODO NODE-3455: remove
|
|
33
33
|
eventFactory: { createPropagationEvent },
|
|
34
34
|
dataflow: { tracker },
|
|
35
35
|
},
|
|
@@ -46,6 +46,7 @@ module.exports = function(core) {
|
|
|
46
46
|
patcher.patch(parentObj, 'validateAsync', {
|
|
47
47
|
name: `Joi.${parentObjType}.validateAsync`,
|
|
48
48
|
patchType,
|
|
49
|
+
usePerf: 'tbd',
|
|
49
50
|
post(data) {
|
|
50
51
|
const childNodes = data.obj?.$_terms.items?.length
|
|
51
52
|
? data.obj.$_terms.items
|
|
@@ -96,6 +97,7 @@ module.exports = function(core) {
|
|
|
96
97
|
patcher.patch(parentObj.rules.custom, 'validate', {
|
|
97
98
|
name: `joi.${objName}.custom.valdiate`,
|
|
98
99
|
patchType,
|
|
100
|
+
usePerf: 'sync',
|
|
99
101
|
post(data) {
|
|
100
102
|
const {
|
|
101
103
|
args: [input, schema],
|
|
@@ -26,7 +26,7 @@ module.exports = function(core) {
|
|
|
26
26
|
patcher,
|
|
27
27
|
assess: {
|
|
28
28
|
getSourceContext,
|
|
29
|
-
inspect, //
|
|
29
|
+
inspect, // TODO NODE-3455: remove
|
|
30
30
|
eventFactory: { createPropagationEvent },
|
|
31
31
|
dataflow: { tracker },
|
|
32
32
|
},
|
|
@@ -43,6 +43,7 @@ module.exports = function(core) {
|
|
|
43
43
|
patcher.patch(def.coerce, 'method', {
|
|
44
44
|
name: 'joi.number.coerce',
|
|
45
45
|
patchType,
|
|
46
|
+
usePerf: 'sync',
|
|
46
47
|
post(data) {
|
|
47
48
|
if (
|
|
48
49
|
!data.result?.value ||
|
|
@@ -42,7 +42,7 @@ module.exports = function(core) {
|
|
|
42
42
|
patcher,
|
|
43
43
|
assess: {
|
|
44
44
|
getSourceContext,
|
|
45
|
-
inspect, //
|
|
45
|
+
inspect, // TODO NODE-3455: remove
|
|
46
46
|
eventFactory: { createPropagationEvent },
|
|
47
47
|
dataflow: {
|
|
48
48
|
tracker, propagation: {
|
|
@@ -105,6 +105,7 @@ module.exports = function(core) {
|
|
|
105
105
|
patcher.patch(validatorObj, 'validate', {
|
|
106
106
|
name: patchName,
|
|
107
107
|
patchType,
|
|
108
|
+
usePerf: 'sync',
|
|
108
109
|
post(data) {
|
|
109
110
|
const [input, schema] = data.args;
|
|
110
111
|
|
|
@@ -137,6 +138,7 @@ module.exports = function(core) {
|
|
|
137
138
|
patcher.patch(coerce, 'method', {
|
|
138
139
|
name: 'joi.string._definition.coerce',
|
|
139
140
|
patchType,
|
|
141
|
+
usePerf: 'sync',
|
|
140
142
|
post(data) {
|
|
141
143
|
const { args, result } = data;
|
|
142
144
|
|
|
@@ -27,7 +27,7 @@ module.exports = function(core) {
|
|
|
27
27
|
patcher,
|
|
28
28
|
assess: {
|
|
29
29
|
getSourceContext,
|
|
30
|
-
inspect, //
|
|
30
|
+
inspect, // TODO NODE-3455: remove
|
|
31
31
|
eventFactory: { createPropagationEvent },
|
|
32
32
|
dataflow: { tracker },
|
|
33
33
|
},
|
|
@@ -37,6 +37,7 @@ module.exports = function(core) {
|
|
|
37
37
|
patcher.patch(values.prototype, 'get', {
|
|
38
38
|
name: 'joi.values',
|
|
39
39
|
patchType,
|
|
40
|
+
usePerf: 'sync',
|
|
40
41
|
post(data) {
|
|
41
42
|
const {
|
|
42
43
|
args: [value, state, prefs],
|
|
@@ -107,6 +107,7 @@ module.exports = function (core) {
|
|
|
107
107
|
patcher.patch(SchemaMap.prototype, 'doValidateSync', {
|
|
108
108
|
name: doValidateSyncName,
|
|
109
109
|
patchType,
|
|
110
|
+
usePerf: 'sync',
|
|
110
111
|
post: (data) => {
|
|
111
112
|
if (!assess.trust_custom_validators || data.result || !getSourceContext()) return;
|
|
112
113
|
|
|
@@ -119,6 +120,7 @@ module.exports = function (core) {
|
|
|
119
120
|
patcher.patch(SchemaMap.prototype, 'doValidate', {
|
|
120
121
|
name: doValidateName,
|
|
121
122
|
patchType,
|
|
123
|
+
usePerf: 'tbd',
|
|
122
124
|
pre: (data) => {
|
|
123
125
|
if (!assess.trust_custom_validators) return;
|
|
124
126
|
|
|
@@ -134,6 +134,7 @@ module.exports = function (core) {
|
|
|
134
134
|
patcher.patch(SchemaMixed.prototype, 'doValidate', {
|
|
135
135
|
name: doValidateName,
|
|
136
136
|
patchType,
|
|
137
|
+
usePerf: 'tbd',
|
|
137
138
|
pre: (data) => {
|
|
138
139
|
if (!assess.trust_custom_validators || !getSourceContext()) {
|
|
139
140
|
return;
|
|
@@ -147,6 +148,7 @@ module.exports = function (core) {
|
|
|
147
148
|
data.args[1] = patcher.patch(cb, {
|
|
148
149
|
name: doValidateName,
|
|
149
150
|
patchType,
|
|
151
|
+
usePerf: 'tbd',
|
|
150
152
|
pre({ args: [err] }) {
|
|
151
153
|
if (err) return;
|
|
152
154
|
|
|
@@ -132,6 +132,7 @@ module.exports = function (core) {
|
|
|
132
132
|
patcher.patch(SchemaString.prototype, 'enum', {
|
|
133
133
|
name: 'mongoose.SchemaString.prototype.enum',
|
|
134
134
|
patchType,
|
|
135
|
+
usePerf: 'sync',
|
|
135
136
|
post(data) {
|
|
136
137
|
if (!data.result) return;
|
|
137
138
|
|
|
@@ -144,6 +145,7 @@ module.exports = function (core) {
|
|
|
144
145
|
patcher.patch(enumValidator, 'validator', {
|
|
145
146
|
name: 'mongoose.SchemaString.prototype.enum.validator',
|
|
146
147
|
patchType,
|
|
148
|
+
usePerf: 'sync',
|
|
147
149
|
post(data) {
|
|
148
150
|
const sourceContext = sources.getStore()?.assess;
|
|
149
151
|
if (!sourceContext) return;
|
|
@@ -163,6 +165,7 @@ module.exports = function (core) {
|
|
|
163
165
|
patcher.patch(SchemaString.prototype, 'doValidate', {
|
|
164
166
|
name,
|
|
165
167
|
patchType,
|
|
168
|
+
usePerf: 'tbd',
|
|
166
169
|
pre(data) {
|
|
167
170
|
const [value, cb] = data.args;
|
|
168
171
|
if (!value || typeof cb !== 'function' || !getSourceContext()) return;
|
|
@@ -174,6 +177,7 @@ module.exports = function (core) {
|
|
|
174
177
|
data.args[1] = patcher.patch(cb, {
|
|
175
178
|
name,
|
|
176
179
|
patchType,
|
|
180
|
+
usePerf: 'tbd',
|
|
177
181
|
pre(data) {
|
|
178
182
|
const {
|
|
179
183
|
args: [err],
|
|
@@ -203,6 +207,7 @@ module.exports = function (core) {
|
|
|
203
207
|
patcher.patch(SchemaString.prototype, 'doValidateSync', {
|
|
204
208
|
name,
|
|
205
209
|
patchType,
|
|
210
|
+
usePerf: 'sync',
|
|
206
211
|
post(data) {
|
|
207
212
|
const {
|
|
208
213
|
args: [value],
|
|
@@ -92,6 +92,7 @@ module.exports = function(core) {
|
|
|
92
92
|
patcher.patch(mysql, 'escape', {
|
|
93
93
|
name: `${lib}.escape`,
|
|
94
94
|
patchType,
|
|
95
|
+
usePerf: 'sync',
|
|
95
96
|
post: createPostHook(`${lib}.escape`, `${createModuleLabel(lib, version)}`)
|
|
96
97
|
});
|
|
97
98
|
});
|
|
@@ -101,6 +102,7 @@ module.exports = function(core) {
|
|
|
101
102
|
patcher.patch(mysqlConnection.prototype, 'escape', {
|
|
102
103
|
name: 'mysql.Connection.prototype.escape',
|
|
103
104
|
patchType,
|
|
105
|
+
usePerf: 'sync',
|
|
104
106
|
post: createPostHook('mysql/lib/Connection.escape', `[${createModuleLabel('mysql', version)}].Connection`)
|
|
105
107
|
});
|
|
106
108
|
});
|
|
@@ -109,6 +111,7 @@ module.exports = function(core) {
|
|
|
109
111
|
patcher.patch(mysqlConnection.prototype, 'escape', {
|
|
110
112
|
name: 'mysql.Connection.prototype.escape',
|
|
111
113
|
patchType,
|
|
114
|
+
usePerf: 'sync',
|
|
112
115
|
post: createPostHook('mysql2/lib/connection.Connection.escape', `[${createModuleLabel('mysql2', version)}].Connection`)
|
|
113
116
|
});
|
|
114
117
|
});
|
|
@@ -41,6 +41,7 @@ module.exports = function(core) {
|
|
|
41
41
|
patcher.patch(path[os], 'extname', {
|
|
42
42
|
name: `path.${os}.extname`,
|
|
43
43
|
patchType,
|
|
44
|
+
usePerf: 'sync',
|
|
44
45
|
post(data) {
|
|
45
46
|
const { args, result, name, hooked, orig } = data;
|
|
46
47
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -41,6 +41,7 @@ module.exports = function(core) {
|
|
|
41
41
|
patcher.patch(path[os], 'format', {
|
|
42
42
|
name: `path.${os}.format`,
|
|
43
43
|
patchType,
|
|
44
|
+
usePerf: 'sync',
|
|
44
45
|
post(data) {
|
|
45
46
|
const { args, result, name: patchName, hooked, orig } = data;
|
|
46
47
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -39,6 +39,7 @@ module.exports = function(core) {
|
|
|
39
39
|
patcher.patch(path[os], 'normalize', {
|
|
40
40
|
name: `path.${os}.normalize`,
|
|
41
41
|
patchType,
|
|
42
|
+
usePerf: 'sync',
|
|
42
43
|
post(data) {
|
|
43
44
|
const { args, result, name, hooked, orig } = data;
|
|
44
45
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -26,7 +26,7 @@ module.exports = function(core) {
|
|
|
26
26
|
patcher,
|
|
27
27
|
assess: {
|
|
28
28
|
getSourceContext,
|
|
29
|
-
inspect, //
|
|
29
|
+
inspect, // TODO NODE-3455: remove
|
|
30
30
|
eventFactory: { createPropagationEvent },
|
|
31
31
|
dataflow: { tracker },
|
|
32
32
|
},
|
|
@@ -41,6 +41,7 @@ module.exports = function(core) {
|
|
|
41
41
|
patcher.patch(path[os], 'parse', {
|
|
42
42
|
name: `path.${os}.parse`,
|
|
43
43
|
patchType,
|
|
44
|
+
usePerf: 'sync',
|
|
44
45
|
post(data) {
|
|
45
46
|
const { args, result, name: patchName, hooked, orig } = data;
|
|
46
47
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -40,6 +40,7 @@ module.exports = function(core) {
|
|
|
40
40
|
patcher.patch(path[os], 'relative', {
|
|
41
41
|
name: `path.${os}.relative`,
|
|
42
42
|
patchType,
|
|
43
|
+
usePerf: 'sync',
|
|
43
44
|
post(data) {
|
|
44
45
|
const { args, result, name, hooked, orig } = data;
|
|
45
46
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -39,6 +39,7 @@ module.exports = function(core) {
|
|
|
39
39
|
patcher.patch(path[os], 'toNamespacedPath', {
|
|
40
40
|
name: `path.${os}.toNamespacedPath`,
|
|
41
41
|
patchType,
|
|
42
|
+
usePerf: 'sync',
|
|
42
43
|
post(data) {
|
|
43
44
|
const { args, result, name, hooked, orig } = data;
|
|
44
45
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|
|
@@ -23,7 +23,7 @@ module.exports = function(core) {
|
|
|
23
23
|
const {
|
|
24
24
|
assess: {
|
|
25
25
|
getSourceContext,
|
|
26
|
-
inspect, //
|
|
26
|
+
inspect, // TODO NODE-3455: remove
|
|
27
27
|
eventFactory: { createPropagationEvent },
|
|
28
28
|
dataflow: { tracker }
|
|
29
29
|
},
|
|
@@ -37,6 +37,7 @@ module.exports = function(core) {
|
|
|
37
37
|
patcher.patch(_export, 'escape', {
|
|
38
38
|
name: 'querystring.escape',
|
|
39
39
|
patchType,
|
|
40
|
+
usePerf: 'sync',
|
|
40
41
|
post(data) {
|
|
41
42
|
const [value] = data.args;
|
|
42
43
|
if (!value?.length || !data.result?.length) return value;
|
|
@@ -26,7 +26,7 @@ module.exports = function(core) {
|
|
|
26
26
|
const {
|
|
27
27
|
assess: {
|
|
28
28
|
getSourceContext,
|
|
29
|
-
inspect, //
|
|
29
|
+
inspect, // TODO NODE-3455: remove
|
|
30
30
|
dataflow: { tracker },
|
|
31
31
|
eventFactory: { createPropagationEvent },
|
|
32
32
|
},
|
|
@@ -147,6 +147,7 @@ module.exports = function(core) {
|
|
|
147
147
|
patcher.patch(_export, methodName, {
|
|
148
148
|
name: `querystring.${methodName}`,
|
|
149
149
|
patchType,
|
|
150
|
+
usePerf: 'sync',
|
|
150
151
|
pre,
|
|
151
152
|
post
|
|
152
153
|
});
|
|
@@ -50,6 +50,7 @@ module.exports = function(core) {
|
|
|
50
50
|
patcher.patch(_export.prototype, 'quoteIdentifier', {
|
|
51
51
|
name: `sequelize.${constructor}.prototype.quoteIdentifier`,
|
|
52
52
|
patchType,
|
|
53
|
+
usePerf: 'sync',
|
|
53
54
|
post(data) {
|
|
54
55
|
const strInfo = tracker.getData(data.result);
|
|
55
56
|
if (!strInfo || !getSourceContext()) return;
|
|
@@ -37,7 +37,7 @@ module.exports = function(core) {
|
|
|
37
37
|
patcher.patch(String.prototype, 'concat', {
|
|
38
38
|
name,
|
|
39
39
|
patchType,
|
|
40
|
-
usePerf:
|
|
40
|
+
usePerf: 'sync',
|
|
41
41
|
post(data) {
|
|
42
42
|
const { obj, result, hooked, orig } = data;
|
|
43
43
|
if (!result || !getSourceContext(PROPAGATOR)) return;
|