Skip to content

Commit ee359f4

Browse files
committed
Properly export more of our top level functions
1 parent 3a2e4ab commit ee359f4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

globals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ global.contentTypes = exports.contentTypes = null;
99
global.threads = exports.threads = [];
1010
global.logger = {};
1111
global.RequestTarget = exports.RequestTarget = undefined;
12+
global.transaction = exports.transaction = undefined;
1213
global.operation = exports.operation = undefined;
1314
exports._assignPackageExport = (name, value) => {
1415
global[name] = exports[name] = value;

security/jsLoader.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ function getHarperExports(scope: Scope) {
391391
createBlob,
392392
RequestTarget,
393393
getContext,
394+
transaction,
395+
getUser,
396+
authenticateUser,
397+
contentTypes,
398+
operation,
394399
};
395400
}
396401
const ALLOWED_NODE_BUILTIN_MODULES = new Set([

0 commit comments

Comments
 (0)