@interlace/eslint-devkit 1.8.0 → 1.10.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/package.json +1 -1
- package/src/aria-definitions.js +1 -990
- package/src/ast/ast-utils.js +1 -133
- package/src/ast/index.js +1 -17
- package/src/ast-node-types.js +1 -174
- package/src/index.js +1 -43
- package/src/messaging/config.js +1 -98
- package/src/messaging/constants.js +1 -678
- package/src/messaging/formatters-ai.js +2 -176
- package/src/messaging/formatters-v2.js +10 -212
- package/src/messaging/formatters.js +3 -186
- package/src/messaging/index.js +1 -21
- package/src/messaging/types-v2.js +1 -2
- package/src/messaging/types.js +1 -2
- package/src/node/fs.js +1 -104
- package/src/node/index.js +1 -19
- package/src/node/os.js +1 -52
- package/src/node/path.js +1 -143
- package/src/resolver/dependency-analysis.js +1 -740
- package/src/resolver/index.js +1 -20
- package/src/resolver/resolver-adapter.js +1 -92
- package/src/resolver/resolver-detection.js +1 -189
- package/src/resolver/resolver.js +1 -206
- package/src/resolver.js +1 -17
- package/src/rule-creation/browser-escape-hatch-rule.d.ts +72 -0
- package/src/rule-creation/browser-escape-hatch-rule.js +1 -0
- package/src/rule-creation/hardcoded-credentials-rule.d.ts +81 -0
- package/src/rule-creation/hardcoded-credentials-rule.js +1 -0
- package/src/rule-creation/index.d.ts +6 -0
- package/src/rule-creation/index.js +1 -21
- package/src/rule-creation/mass-assignment-rule.d.ts +79 -0
- package/src/rule-creation/mass-assignment-rule.js +1 -0
- package/src/rule-creation/mock-context.js +1 -39
- package/src/rule-creation/raw-identifier-rule.d.ts +127 -0
- package/src/rule-creation/raw-identifier-rule.js +1 -0
- package/src/rule-creation/require-tls-rule.d.ts +1 -1
- package/src/rule-creation/require-tls-rule.js +1 -190
- package/src/rule-creation/rule-creator.js +1 -70
- package/src/rule-creation/sdk-api-key-rule.d.ts +108 -0
- package/src/rule-creation/sdk-api-key-rule.js +1 -0
- package/src/rule-creation/sql-injection-rule.js +1 -207
- package/src/rule-creation/system-prompt-injection-rule.d.ts +78 -0
- package/src/rule-creation/system-prompt-injection-rule.js +1 -0
- package/src/rule-creation/unscoped-mutation-rule.js +1 -234
- package/src/security/index.js +1 -17
- package/src/security/security-utils.js +1 -461
- package/src/types/index.js +1 -18
- package/src/types/meta-augmentation.js +1 -2
- package/src/types/type-utils.js +1 -222
|
@@ -1,234 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.propertyKeyName = propertyKeyName;
|
|
4
|
-
exports.hasTruthyKey = hasTruthyKey;
|
|
5
|
-
exports.hasArgumentScope = hasArgumentScope;
|
|
6
|
-
exports.chainMethodNames = chainMethodNames;
|
|
7
|
-
exports.driverBindings = driverBindings;
|
|
8
|
-
exports.receiverBaseName = receiverBaseName;
|
|
9
|
-
exports.createUnscopedMutationRule = createUnscopedMutationRule;
|
|
10
|
-
const ast_node_types_1 = require("../ast-node-types");
|
|
11
|
-
const messaging_1 = require("../messaging");
|
|
12
|
-
const DEFAULT_SCOPE_KEYS = ['where'];
|
|
13
|
-
const DEFAULT_SCOPE_METHODS = ['where'];
|
|
14
|
-
function propertyKeyName(prop) {
|
|
15
|
-
if (prop.type !== ast_node_types_1.AST_NODE_TYPES.Property)
|
|
16
|
-
return undefined;
|
|
17
|
-
if (prop.computed)
|
|
18
|
-
return undefined;
|
|
19
|
-
if (prop.key.type === ast_node_types_1.AST_NODE_TYPES.Identifier)
|
|
20
|
-
return prop.key.name;
|
|
21
|
-
if (prop.key.type === ast_node_types_1.AST_NODE_TYPES.Literal && typeof prop.key.value === 'string') {
|
|
22
|
-
return prop.key.value;
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
function hasTruthyKey(obj, keys) {
|
|
27
|
-
return obj.properties.some((prop) => {
|
|
28
|
-
if (prop.type !== ast_node_types_1.AST_NODE_TYPES.Property)
|
|
29
|
-
return false;
|
|
30
|
-
const name = propertyKeyName(prop);
|
|
31
|
-
if (name === undefined || !keys.includes(name))
|
|
32
|
-
return false;
|
|
33
|
-
return !(prop.value.type === ast_node_types_1.AST_NODE_TYPES.Literal && !prop.value.value);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function hasArgumentScope(args, scopeKeys) {
|
|
37
|
-
return args.some((arg) => {
|
|
38
|
-
if (arg.type === ast_node_types_1.AST_NODE_TYPES.ObjectExpression) {
|
|
39
|
-
return arg.properties.some((prop) => {
|
|
40
|
-
if (prop.type === ast_node_types_1.AST_NODE_TYPES.SpreadElement)
|
|
41
|
-
return true;
|
|
42
|
-
const name = propertyKeyName(prop);
|
|
43
|
-
if (name === undefined)
|
|
44
|
-
return true;
|
|
45
|
-
if (!scopeKeys.includes(name))
|
|
46
|
-
return false;
|
|
47
|
-
if (prop.type === ast_node_types_1.AST_NODE_TYPES.Property &&
|
|
48
|
-
prop.value.type === ast_node_types_1.AST_NODE_TYPES.ObjectExpression &&
|
|
49
|
-
prop.value.properties.length === 0) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
return true;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return arg.type !== ast_node_types_1.AST_NODE_TYPES.Literal;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function chainMethodNames(node) {
|
|
59
|
-
let root = node;
|
|
60
|
-
for (;;) {
|
|
61
|
-
const parent = root.parent;
|
|
62
|
-
if (!parent)
|
|
63
|
-
break;
|
|
64
|
-
if (parent.type === ast_node_types_1.AST_NODE_TYPES.MemberExpression && parent.object === root) {
|
|
65
|
-
root = parent;
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
if (parent.type === ast_node_types_1.AST_NODE_TYPES.CallExpression && parent.callee === root) {
|
|
69
|
-
root = parent;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
const names = new Set();
|
|
75
|
-
let cursor = root;
|
|
76
|
-
for (;;) {
|
|
77
|
-
if (cursor.type === ast_node_types_1.AST_NODE_TYPES.CallExpression) {
|
|
78
|
-
cursor = cursor.callee;
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
if (cursor.type === ast_node_types_1.AST_NODE_TYPES.MemberExpression) {
|
|
82
|
-
if (!cursor.computed && cursor.property.type === ast_node_types_1.AST_NODE_TYPES.Identifier) {
|
|
83
|
-
names.add(cursor.property.name);
|
|
84
|
-
}
|
|
85
|
-
cursor = cursor.object;
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
return names;
|
|
91
|
-
}
|
|
92
|
-
function driverBindings(program, modules) {
|
|
93
|
-
const names = new Set();
|
|
94
|
-
const isDriver = (source) => modules.some((m) => source === m || source.startsWith(`${m}/`));
|
|
95
|
-
for (const stmt of program.body) {
|
|
96
|
-
if (stmt.type === ast_node_types_1.AST_NODE_TYPES.ImportDeclaration) {
|
|
97
|
-
if (typeof stmt.source.value !== 'string' || !isDriver(stmt.source.value))
|
|
98
|
-
continue;
|
|
99
|
-
for (const spec of stmt.specifiers)
|
|
100
|
-
names.add(spec.local.name);
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
if (stmt.type !== ast_node_types_1.AST_NODE_TYPES.VariableDeclaration)
|
|
104
|
-
continue;
|
|
105
|
-
for (const decl of stmt.declarations) {
|
|
106
|
-
const init = decl.init;
|
|
107
|
-
if (!init ||
|
|
108
|
-
init.type !== ast_node_types_1.AST_NODE_TYPES.CallExpression ||
|
|
109
|
-
init.callee.type !== ast_node_types_1.AST_NODE_TYPES.Identifier ||
|
|
110
|
-
init.callee.name !== 'require') {
|
|
111
|
-
continue;
|
|
112
|
-
}
|
|
113
|
-
const arg = init.arguments[0];
|
|
114
|
-
if (!arg ||
|
|
115
|
-
arg.type !== ast_node_types_1.AST_NODE_TYPES.Literal ||
|
|
116
|
-
typeof arg.value !== 'string' ||
|
|
117
|
-
!isDriver(arg.value)) {
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
if (decl.id.type === ast_node_types_1.AST_NODE_TYPES.Identifier)
|
|
121
|
-
names.add(decl.id.name);
|
|
122
|
-
if (decl.id.type === ast_node_types_1.AST_NODE_TYPES.ObjectPattern) {
|
|
123
|
-
for (const prop of decl.id.properties) {
|
|
124
|
-
if (prop.type === ast_node_types_1.AST_NODE_TYPES.Property && prop.value.type === ast_node_types_1.AST_NODE_TYPES.Identifier) {
|
|
125
|
-
names.add(prop.value.name);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return names;
|
|
132
|
-
}
|
|
133
|
-
function receiverBaseName(node) {
|
|
134
|
-
let cursor = node.object;
|
|
135
|
-
for (;;) {
|
|
136
|
-
if (cursor.type === ast_node_types_1.AST_NODE_TYPES.MemberExpression) {
|
|
137
|
-
if (cursor.object.type === ast_node_types_1.AST_NODE_TYPES.ThisExpression &&
|
|
138
|
-
!cursor.computed &&
|
|
139
|
-
cursor.property.type === ast_node_types_1.AST_NODE_TYPES.Identifier) {
|
|
140
|
-
return cursor.property.name;
|
|
141
|
-
}
|
|
142
|
-
cursor = cursor.object;
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
if (cursor.type === ast_node_types_1.AST_NODE_TYPES.CallExpression) {
|
|
146
|
-
cursor = cursor.callee;
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
return cursor.type === ast_node_types_1.AST_NODE_TYPES.Identifier ? cursor.name : undefined;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function createUnscopedMutationRule(config) {
|
|
153
|
-
const sinks = new Set(config.methods);
|
|
154
|
-
const scopeKeys = config.scopeKeys ?? DEFAULT_SCOPE_KEYS;
|
|
155
|
-
const scopeMethods = config.scopeMethods ?? DEFAULT_SCOPE_METHODS;
|
|
156
|
-
const truncateKeys = config.truncateKeys ?? [];
|
|
157
|
-
const argumentRole = config.argumentRole ?? 'options';
|
|
158
|
-
return {
|
|
159
|
-
meta: {
|
|
160
|
-
type: config.meta.type,
|
|
161
|
-
docs: { ...config.meta.docs },
|
|
162
|
-
messages: {
|
|
163
|
-
unscopedMutation: (0, messaging_1.formatLLMMessage)({
|
|
164
|
-
icon: messaging_1.MessageIcons.SECURITY,
|
|
165
|
-
issueName: 'Unscoped Bulk Mutation',
|
|
166
|
-
description: 'Bulk mutation with no filter detected. This rewrites or deletes every row in the table.',
|
|
167
|
-
severity: 'HIGH',
|
|
168
|
-
cwe: config.meta.docs.cwe,
|
|
169
|
-
owasp: 'A01:2021',
|
|
170
|
-
compliance: ['SOC2', 'NIST-CSF'],
|
|
171
|
-
effort: 'low',
|
|
172
|
-
fix: config.fix,
|
|
173
|
-
documentationLink: config.documentationLink,
|
|
174
|
-
}),
|
|
175
|
-
explicitTruncate: (0, messaging_1.formatLLMMessage)({
|
|
176
|
-
icon: messaging_1.MessageIcons.SECURITY,
|
|
177
|
-
issueName: 'Unscoped Bulk Mutation',
|
|
178
|
-
description: 'Table truncation detected. This ignores any filter and empties the whole table.',
|
|
179
|
-
severity: 'HIGH',
|
|
180
|
-
cwe: config.meta.docs.cwe,
|
|
181
|
-
owasp: 'A01:2021',
|
|
182
|
-
compliance: ['SOC2', 'NIST-CSF'],
|
|
183
|
-
effort: 'low',
|
|
184
|
-
fix: 'Remove the truncate flag and delete by filter, or move the truncation to an explicit maintenance script.',
|
|
185
|
-
documentationLink: config.documentationLink,
|
|
186
|
-
}),
|
|
187
|
-
},
|
|
188
|
-
schema: [],
|
|
189
|
-
},
|
|
190
|
-
defaultOptions: [],
|
|
191
|
-
create(context) {
|
|
192
|
-
let bindings = new Set();
|
|
193
|
-
return {
|
|
194
|
-
Program(program) {
|
|
195
|
-
bindings = driverBindings(program, config.modules);
|
|
196
|
-
},
|
|
197
|
-
CallExpression(node) {
|
|
198
|
-
if (bindings.size === 0)
|
|
199
|
-
return;
|
|
200
|
-
if (node.callee.type !== ast_node_types_1.AST_NODE_TYPES.MemberExpression ||
|
|
201
|
-
node.callee.computed ||
|
|
202
|
-
node.callee.property.type !== ast_node_types_1.AST_NODE_TYPES.Identifier ||
|
|
203
|
-
!sinks.has(node.callee.property.name)) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
const base = receiverBaseName(node.callee);
|
|
207
|
-
if (base === undefined)
|
|
208
|
-
return;
|
|
209
|
-
if (!bindings.has(base) && !config.receiverPattern.test(base))
|
|
210
|
-
return;
|
|
211
|
-
if (truncateKeys.length > 0) {
|
|
212
|
-
const truncating = node.arguments.some((arg) => arg.type === ast_node_types_1.AST_NODE_TYPES.ObjectExpression && hasTruthyKey(arg, truncateKeys));
|
|
213
|
-
if (truncating) {
|
|
214
|
-
context.report({ node, messageId: 'explicitTruncate' });
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (argumentRole === 'options') {
|
|
219
|
-
if (config.requireOptionsObject === true &&
|
|
220
|
-
!node.arguments.some((arg) => arg.type === ast_node_types_1.AST_NODE_TYPES.ObjectExpression)) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
if (hasArgumentScope(node.arguments, scopeKeys))
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
const chained = chainMethodNames(node);
|
|
227
|
-
if (scopeMethods.some((name) => chained.has(name)))
|
|
228
|
-
return;
|
|
229
|
-
context.report({ node, messageId: 'unscopedMutation' });
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.propertyKeyName=propertyKeyName;exports.hasTruthyKey=hasTruthyKey;exports.hasArgumentScope=hasArgumentScope;exports.chainMethodNames=chainMethodNames;exports.driverBindings=driverBindings;exports.receiverBaseName=receiverBaseName;exports.createUnscopedMutationRule=createUnscopedMutationRule;const ast_node_types_1=require("../ast-node-types");const messaging_1=require("../messaging");const DEFAULT_SCOPE_KEYS=["where"];const DEFAULT_SCOPE_METHODS=["where"];function propertyKeyName(prop){if(prop.type!==ast_node_types_1.AST_NODE_TYPES.Property)return void 0;if(prop.computed)return void 0;if(prop.key.type===ast_node_types_1.AST_NODE_TYPES.Identifier)return prop.key.name;if(prop.key.type===ast_node_types_1.AST_NODE_TYPES.Literal&&typeof prop.key.value==="string"){return prop.key.value}return void 0}function hasTruthyKey(obj,keys){return obj.properties.some(prop=>{if(prop.type!==ast_node_types_1.AST_NODE_TYPES.Property)return false;const name=propertyKeyName(prop);if(name===void 0||!keys.includes(name))return false;return!(prop.value.type===ast_node_types_1.AST_NODE_TYPES.Literal&&!prop.value.value)})}function hasArgumentScope(args,scopeKeys){return args.some(arg=>{if(arg.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression){return arg.properties.some(prop=>{if(prop.type===ast_node_types_1.AST_NODE_TYPES.SpreadElement)return true;const name=propertyKeyName(prop);if(name===void 0)return true;if(!scopeKeys.includes(name))return false;if(prop.type===ast_node_types_1.AST_NODE_TYPES.Property&&prop.value.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression&&prop.value.properties.length===0){return false}return true})}return arg.type!==ast_node_types_1.AST_NODE_TYPES.Literal})}function chainMethodNames(node){let root=node;for(;;){const parent=root.parent;if(!parent)break;if(parent.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression&&parent.object===root){root=parent;continue}if(parent.type===ast_node_types_1.AST_NODE_TYPES.CallExpression&&parent.callee===root){root=parent;continue}break}const names=new Set;let cursor=root;for(;;){if(cursor.type===ast_node_types_1.AST_NODE_TYPES.CallExpression){cursor=cursor.callee;continue}if(cursor.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){if(!cursor.computed&&cursor.property.type===ast_node_types_1.AST_NODE_TYPES.Identifier){names.add(cursor.property.name)}cursor=cursor.object;continue}break}return names}function driverBindings(program,modules){const names=new Set;const isDriver=source=>modules.some(m=>source===m||source.startsWith(`${m}/`));for(const stmt of program.body){if(stmt.type===ast_node_types_1.AST_NODE_TYPES.ImportDeclaration){if(typeof stmt.source.value!=="string"||!isDriver(stmt.source.value))continue;for(const spec of stmt.specifiers)names.add(spec.local.name);continue}if(stmt.type!==ast_node_types_1.AST_NODE_TYPES.VariableDeclaration)continue;for(const decl of stmt.declarations){const init=decl.init;if(!init||init.type!==ast_node_types_1.AST_NODE_TYPES.CallExpression||init.callee.type!==ast_node_types_1.AST_NODE_TYPES.Identifier||init.callee.name!=="require"){continue}const arg=init.arguments[0];if(!arg||arg.type!==ast_node_types_1.AST_NODE_TYPES.Literal||typeof arg.value!=="string"||!isDriver(arg.value)){continue}if(decl.id.type===ast_node_types_1.AST_NODE_TYPES.Identifier)names.add(decl.id.name);if(decl.id.type===ast_node_types_1.AST_NODE_TYPES.ObjectPattern){for(const prop of decl.id.properties){if(prop.type===ast_node_types_1.AST_NODE_TYPES.Property&&prop.value.type===ast_node_types_1.AST_NODE_TYPES.Identifier){names.add(prop.value.name)}}}}}return names}function receiverBaseName(node){let cursor=node.object;for(;;){if(cursor.type===ast_node_types_1.AST_NODE_TYPES.MemberExpression){if(cursor.object.type===ast_node_types_1.AST_NODE_TYPES.ThisExpression&&!cursor.computed&&cursor.property.type===ast_node_types_1.AST_NODE_TYPES.Identifier){return cursor.property.name}cursor=cursor.object;continue}if(cursor.type===ast_node_types_1.AST_NODE_TYPES.CallExpression){cursor=cursor.callee;continue}return cursor.type===ast_node_types_1.AST_NODE_TYPES.Identifier?cursor.name:void 0}}function createUnscopedMutationRule(config){const sinks=new Set(config.methods);const scopeKeys=config.scopeKeys??DEFAULT_SCOPE_KEYS;const scopeMethods=config.scopeMethods??DEFAULT_SCOPE_METHODS;const truncateKeys=config.truncateKeys??[];const argumentRole=config.argumentRole??"options";return{meta:{type:config.meta.type,docs:{...config.meta.docs},messages:{unscopedMutation:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Unscoped Bulk Mutation",description:"Bulk mutation with no filter detected. This rewrites or deletes every row in the table.",severity:"HIGH",cwe:config.meta.docs.cwe,owasp:"A01:2021",compliance:["SOC2","NIST-CSF"],effort:"low",fix:config.fix,documentationLink:config.documentationLink}),explicitTruncate:(0,messaging_1.formatLLMMessage)({icon:messaging_1.MessageIcons.SECURITY,issueName:"Unscoped Bulk Mutation",description:"Table truncation detected. This ignores any filter and empties the whole table.",severity:"HIGH",cwe:config.meta.docs.cwe,owasp:"A01:2021",compliance:["SOC2","NIST-CSF"],effort:"low",fix:"Remove the truncate flag and delete by filter, or move the truncation to an explicit maintenance script.",documentationLink:config.documentationLink})},schema:[]},defaultOptions:[],create(context){let bindings=new Set;return{Program(program){bindings=driverBindings(program,config.modules)},CallExpression(node){if(bindings.size===0)return;if(node.callee.type!==ast_node_types_1.AST_NODE_TYPES.MemberExpression||node.callee.computed||node.callee.property.type!==ast_node_types_1.AST_NODE_TYPES.Identifier||!sinks.has(node.callee.property.name)){return}const base=receiverBaseName(node.callee);if(base===void 0)return;if(!bindings.has(base)&&!config.receiverPattern.test(base))return;if(truncateKeys.length>0){const truncating=node.arguments.some(arg=>arg.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression&&hasTruthyKey(arg,truncateKeys));if(truncating){context.report({node,messageId:"explicitTruncate"});return}}if(argumentRole==="options"){if(config.requireOptionsObject===true&&!node.arguments.some(arg=>arg.type===ast_node_types_1.AST_NODE_TYPES.ObjectExpression)){return}if(hasArgumentScope(node.arguments,scopeKeys))return}const chained=chainMethodNames(node);if(scopeMethods.some(name=>chained.has(name)))return;context.report({node,messageId:"unscopedMutation"})}}}}}
|
package/src/security/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./security-utils"), exports);
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,m,k,k2){if(k2===void 0)k2=k;var desc=Object.getOwnPropertyDescriptor(m,k);if(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable)){desc={enumerable:true,get:function(){return m[k]}}}Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){if(k2===void 0)k2=k;o[k2]=m[k]}));var __exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)if(p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p))__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:true});__exportStar(require("./security-utils"),exports);
|