New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaspack/core

Package Overview
Dependencies
Maintainers
0
Versions
299
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/core - npm Package Compare versions

Comparing version 2.12.1-canary.3375 to 2.12.1-canary.3376

8

lib/atlaspack-v3/AtlaspackV3.js

@@ -46,10 +46,2 @@ "use strict";

}
async build() {
const [workers, registerWorker] = this.#createWorkers();
let result = await this._internal.build({
registerWorker
});
for (const worker of workers) worker.terminate();
return result;
}
async buildAssetGraph() {

@@ -56,0 +48,0 @@ const [workers, registerWorker] = this.#createWorkers();

19

lib/atlaspack-v3/worker/worker.js

@@ -21,11 +21,28 @@ "use strict";

}
function _module() {
const data = _interopRequireWildcard(require("module"));
_module = function () {
return data;
};
return data;
}
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
class AtlaspackWorker {
#resolvers;
#transformers;
constructor() {
this.#transformers = new Map();
}
ping() {
// console.log('Hi');
}
async transformerRegister(resolve_from, specifier) {
let customRequire = _module().createRequire(resolve_from);
let resolvedPath = customRequire.resolve(specifier);
// $FlowFixMe
let transformer = await import(resolvedPath);
this.#transformers.set(`${resolve_from}:${specifier}`, transformer);
}
}
exports.AtlaspackWorker = AtlaspackWorker;
napi().registerWorker(_worker_threads().workerData.tx_worker, new AtlaspackWorker());
{
"name": "@atlaspack/core",
"version": "2.12.1-canary.3375+5346c46f7",
"version": "2.12.1-canary.3376+1fce00015",
"license": "MIT",

@@ -23,16 +23,16 @@ "publishConfig": {

"dependencies": {
"@atlaspack/cache": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/diagnostic": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/events": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/feature-flags": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/fs": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/graph": "3.2.1-canary.3375+5346c46f7",
"@atlaspack/logger": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/package-manager": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/plugin": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/profiler": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/rust": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/types": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/utils": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/workers": "2.12.1-canary.3375+5346c46f7",
"@atlaspack/cache": "2.12.1-canary.3376+1fce00015",
"@atlaspack/diagnostic": "2.12.1-canary.3376+1fce00015",
"@atlaspack/events": "2.12.1-canary.3376+1fce00015",
"@atlaspack/feature-flags": "2.12.1-canary.3376+1fce00015",
"@atlaspack/fs": "2.12.1-canary.3376+1fce00015",
"@atlaspack/graph": "3.2.1-canary.3376+1fce00015",
"@atlaspack/logger": "2.12.1-canary.3376+1fce00015",
"@atlaspack/package-manager": "2.12.1-canary.3376+1fce00015",
"@atlaspack/plugin": "2.12.1-canary.3376+1fce00015",
"@atlaspack/profiler": "2.12.1-canary.3376+1fce00015",
"@atlaspack/rust": "2.12.1-canary.3376+1fce00015",
"@atlaspack/types": "2.12.1-canary.3376+1fce00015",
"@atlaspack/utils": "2.12.1-canary.3376+1fce00015",
"@atlaspack/workers": "2.12.1-canary.3376+1fce00015",
"@mischnic/json-sourcemap": "^0.1.0",

@@ -59,3 +59,3 @@ "@parcel/source-map": "^2.1.1",

},
"gitHead": "5346c46f74deb3a8427888d7484ac7c7d98b6522"
"gitHead": "1fce000155c511e503e91511f6bc77a7c402fa31"
}

@@ -36,13 +36,2 @@ // @flow

async build(): Promise<any> {
const [workers, registerWorker] = this.#createWorkers();
let result = await this._internal.build({
registerWorker,
});
for (const worker of workers) worker.terminate();
return result;
}
async buildAssetGraph(): Promise<any> {

@@ -49,0 +38,0 @@ const [workers, registerWorker] = this.#createWorkers();

// @flow
import * as napi from '@atlaspack/rust';
import type {Transformer} from '@atlaspack/types';
import {workerData} from 'worker_threads';
import type {ResolverNapi} from '../plugins/Resolver';
import * as module from 'module';
export class AtlaspackWorker {
#resolvers: Map<string, ResolverNapi>;
#transformers: Map<string, Transformer<any>>;
constructor() {
this.#transformers = new Map();
}
ping() {
// console.log('Hi');
}
async transformerRegister(resolve_from: string, specifier: string) {
let customRequire = module.createRequire(resolve_from);
let resolvedPath = customRequire.resolve(specifier);
// $FlowFixMe
let transformer = await import(resolvedPath);
this.#transformers.set(`${resolve_from}:${specifier}`, transformer);
}
}
napi.registerWorker(workerData.tx_worker, new AtlaspackWorker());
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc