@babel/register
Advanced tools
Comparing version 7.22.5 to 7.22.15
@@ -1,3 +0,3 @@ | ||
module.exports = require("./worker/cache"); | ||
module.exports = require("./worker/cache.js"); | ||
//# sourceMappingURL=cache.js.map |
@@ -7,6 +7,6 @@ "use strict"; | ||
} | ||
const hook = require("./hook"); | ||
const hook = require("./hook.js"); | ||
const { | ||
WorkerClient | ||
} = require("./worker-client"); | ||
} = require("./worker-client.js"); | ||
let client; | ||
@@ -22,3 +22,3 @@ function register(opts) { | ||
}); | ||
if (!require("./is-in-register-worker").isInRegisterWorker) { | ||
if (!require("./is-in-register-worker.js").isInRegisterWorker) { | ||
register(); | ||
@@ -25,0 +25,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
exports.__esModule = true; | ||
const node = require("./nodeWrapper"); | ||
const node = require("./nodeWrapper.js"); | ||
const register = node.default; | ||
@@ -9,0 +9,0 @@ Object.assign(exports, node); |
"use strict"; | ||
const hook = require("./hook"); | ||
const hook = require("./hook.js"); | ||
const { | ||
LocalClient | ||
} = require("./worker-client"); | ||
} = require("./worker-client.js"); | ||
const client = new LocalClient(); | ||
@@ -8,0 +8,0 @@ function register(opts = {}) { |
@@ -5,3 +5,3 @@ const Module = require("module"); | ||
Module._cache = internalModuleCache; | ||
const node = require("./node"); | ||
const node = require("./node.js"); | ||
Module._cache = globalModuleCache; | ||
@@ -8,0 +8,0 @@ const smsPath = require.resolve("source-map-support"); |
@@ -1,2 +0,2 @@ | ||
var _class, _worker, _signal, _markInRegisterWorker, _worker_threads; | ||
var _class2, _worker, _signal, _markInRegisterWorker, _worker_threads; | ||
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; } | ||
@@ -48,7 +48,7 @@ function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { _classCheckPrivateStaticAccess(receiver, classConstructor); _classCheckPrivateStaticFieldDescriptor(descriptor, "get"); return _classApplyDescriptorGet(receiver, descriptor); } | ||
} | ||
exports.WorkerClient = (_worker = new WeakMap(), _signal = new WeakMap(), (_class = class WorkerClient extends Client { | ||
exports.WorkerClient = (_worker = new WeakMap(), _signal = new WeakMap(), (_class2 = class WorkerClient extends Client { | ||
constructor() { | ||
super((action, payload) => { | ||
_classPrivateFieldGet(this, _signal)[0] = 0; | ||
const subChannel = new (_classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).MessageChannel)(); | ||
const subChannel = new (_classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).MessageChannel)(); | ||
_classPrivateFieldGet(this, _worker).postMessage({ | ||
@@ -63,3 +63,3 @@ signal: _classPrivateFieldGet(this, _signal), | ||
message | ||
} = _classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).receiveMessageOnPort(subChannel.port2); | ||
} = _classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).receiveMessageOnPort(subChannel.port2); | ||
if (message.error) throw Object.assign(message.error, message.errorData);else return message.result; | ||
@@ -69,4 +69,4 @@ }); | ||
writable: true, | ||
value: new (_classStaticPrivateFieldSpecGet(WorkerClient, _class, _worker_threads).Worker)(path.resolve(__dirname, "./worker/index.js"), { | ||
env: _classStaticPrivateFieldSpecGet(WorkerClient, _class, _markInRegisterWorker).call(WorkerClient, process.env) | ||
value: new (_classStaticPrivateFieldSpecGet(WorkerClient, _class2, _worker_threads).Worker)(path.resolve(__dirname, "./worker/index.js"), { | ||
env: _classStaticPrivateFieldSpecGet(WorkerClient, _class2, _markInRegisterWorker).call(WorkerClient, process.env) | ||
}) | ||
@@ -86,3 +86,3 @@ }); | ||
set: void 0 | ||
}, _class)); | ||
}, _class2)); | ||
function _get_worker_threads() { | ||
@@ -92,12 +92,12 @@ return require("worker_threads"); | ||
function _get_markInRegisterWorker() { | ||
return require("./is-in-register-worker").markInRegisterWorker; | ||
return require("./is-in-register-worker.js").markInRegisterWorker; | ||
} | ||
{ | ||
var _class2, _handleMessage; | ||
exports.LocalClient = (_class2 = class LocalClient extends Client { | ||
var _class3, _handleMessage; | ||
exports.LocalClient = (_class3 = class LocalClient extends Client { | ||
constructor() { | ||
var _classStaticPrivateFi; | ||
(_classStaticPrivateFi = _classStaticPrivateFieldSpecGet(LocalClient, _class2, _handleMessage)) != null ? _classStaticPrivateFi : _classStaticPrivateFieldSpecSet(LocalClient, _class2, _handleMessage, require("./worker/handle-message")); | ||
(_classStaticPrivateFi = _classStaticPrivateFieldSpecGet(LocalClient, _class3, _handleMessage)) != null ? _classStaticPrivateFi : _classStaticPrivateFieldSpecSet(LocalClient, _class3, _handleMessage, require("./worker/handle-message.js")); | ||
super((action, payload) => { | ||
return _classStaticPrivateFieldSpecGet(LocalClient, _class2, _handleMessage).call(LocalClient, action === ACTIONS.TRANSFORM ? ACTIONS.TRANSFORM_SYNC : action, payload); | ||
return _classStaticPrivateFieldSpecGet(LocalClient, _class3, _handleMessage).call(LocalClient, action === ACTIONS.TRANSFORM ? ACTIONS.TRANSFORM_SYNC : action, payload); | ||
}); | ||
@@ -109,5 +109,5 @@ this.isLocalClient = true; | ||
value: void 0 | ||
}, _class2); | ||
}, _class3); | ||
} | ||
//# sourceMappingURL=worker-client.js.map |
@@ -1,2 +0,2 @@ | ||
const cache = require("./cache"); | ||
const cache = require("./cache.js"); | ||
function initialize(babel) { | ||
@@ -3,0 +3,0 @@ exports.init = null; |
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
const babel = require("./babel-core"); | ||
const babel = require("./babel-core.js"); | ||
let data = {}; | ||
@@ -16,0 +16,0 @@ let cacheDirty = false; |
@@ -1,2 +0,2 @@ | ||
const babel = require("./babel-core"); | ||
const babel = require("./babel-core.js"); | ||
const { | ||
@@ -6,3 +6,3 @@ setOptions, | ||
transformSync | ||
} = require("./transform"); | ||
} = require("./transform.js"); | ||
module.exports = function handleMessage(action, payload) { | ||
@@ -9,0 +9,0 @@ switch (action) { |
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
const babel = require("./babel-core"); | ||
const handleMessage = require("./handle-message"); | ||
const babel = require("./babel-core.js"); | ||
const handleMessage = require("./handle-message.js"); | ||
const { | ||
@@ -6,0 +6,0 @@ parentPort |
@@ -8,4 +8,4 @@ "use strict"; | ||
const fs = require("fs"); | ||
const babel = require("./babel-core"); | ||
const registerCache = require("../cache"); | ||
const babel = require("./babel-core.js"); | ||
const registerCache = require("../cache.js"); | ||
const nmRE = escapeRegExp(path.sep + "node_modules" + path.sep); | ||
@@ -12,0 +12,0 @@ function escapeRegExp(string) { |
{ | ||
"name": "@babel/register", | ||
"version": "7.22.5", | ||
"version": "7.22.15", | ||
"description": "babel require hook", | ||
@@ -31,5 +31,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.22.5", | ||
"@babel/core": "^7.22.15", | ||
"@babel/plugin-transform-arrow-functions": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.22.15", | ||
"browserify": "^16.5.2" | ||
@@ -36,0 +36,0 @@ }, |
@@ -5,3 +5,3 @@ # @babel/register | ||
See our website [@babel/register](https://babeljs.io/docs/en/babel-register) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20register%22+is%3Aopen) associated with this package. | ||
See our website [@babel/register](https://babeljs.io/docs/babel-register) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20register%22+is%3Aopen) associated with this package. | ||
@@ -8,0 +8,0 @@ ## Install |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61837