Socket
Socket
Sign inDemoInstall

@xylabs/threads

Package Overview
Dependencies
Maintainers
7
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/threads - npm Package Compare versions

Comparing version 3.1.13 to 3.2.0

2

dist-esm/master/implementation.node.js

@@ -12,3 +12,3 @@ /* eslint-disable unicorn/prefer-logical-operator-over-ternary */

import { cpus } from 'node:os';
import * as path from 'node:path';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

@@ -15,0 +15,0 @@ import getCallsites from 'callsites';

@@ -11,25 +11,2 @@ "use strict";

/// <reference lib="dom" />
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) 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 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -42,3 +19,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const node_os_1 = require("node:os");
const path = __importStar(require("node:path"));
const node_path_1 = __importDefault(require("node:path"));
const node_url_1 = require("node:url");

@@ -88,3 +65,3 @@ const callsites_1 = __importDefault(require("callsites"));

}
const rebasedScriptPath = callerPath ? path.join(path.dirname(callerPath), scriptPath) : scriptPath;
const rebasedScriptPath = callerPath ? node_path_1.default.join(node_path_1.default.dirname(callerPath), scriptPath) : scriptPath;
return rebasedScriptPath;

@@ -95,3 +72,3 @@ }

// eval() hack is also webpack-related
return path.isAbsolute(filePath) ? filePath : path.join(baseURL || eval('__dirname'), filePath);
return node_path_1.default.isAbsolute(filePath) ? filePath : node_path_1.default.join(baseURL || eval('__dirname'), filePath);
};

@@ -98,0 +75,0 @@ const workerFilePath = typeof __non_webpack_require__ === 'function' ?

{
"name": "@xylabs/threads",
"version": "3.1.13",
"version": "3.2.0",
"description": "Web workers & worker threads as simple as a function call",

@@ -78,6 +78,6 @@ "license": "MIT",

"@rollup/plugin-node-resolve": "^10.0.0",
"@types/chai": "^4.3.14",
"@types/chai": "^4.3.15",
"@types/debug": "^4.1.12",
"@types/execa": "^2.0.0",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"@types/webpack": "^4.41.38",

@@ -84,0 +84,0 @@ "ava": "^3.15.0",

@@ -13,3 +13,3 @@ /* eslint-disable unicorn/prefer-logical-operator-over-ternary */

import { cpus } from 'node:os'
import * as path from 'node:path'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

@@ -16,0 +16,0 @@

@@ -1,2 +0,2 @@

import * as path from 'node:path'
import path from 'node:path'

@@ -3,0 +3,0 @@ import test from 'ava'

@@ -58,2 +58,4 @@ /* eslint-disable import/no-default-export */

export default () => Promise.all([test(), test2(), test3(), test4()])
const testAll = () => Promise.all([test(), test2(), test3(), test4()])
export default testAll
/* eslint-disable require-await */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-var-requires */
import * as path from 'node:path'
import path from 'node:path'

@@ -6,0 +6,0 @@ import test from 'ava'

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