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

@xylabs/platform

Package Overview
Dependencies
Maintainers
7
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/platform - npm Package Compare versions

Comparing version

to
3.2.0

2

dist/browser/index.js
// src/browser/index.ts
var isBrowser = () => {
return !isWebworker() && window && window.document !== void 0;
return !isWebworker() && self.constructor?.name === "Window";
};

@@ -5,0 +5,0 @@ var isWebworker = () => {

@@ -26,9 +26,21 @@ {

},
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
"neutral": {
"require": {
"types": "./dist/browser/index.d.cts",
"default": "./dist/browser/index.cjs"
},
"import": {
"types": "./dist/browser/index.d.mts",
"default": "./dist/browser/index.js"
}
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.js"
"node": {
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"import": {
"types": "./dist/node/index.d.mts",
"default": "./dist/node/index.js"
}
}

@@ -38,5 +50,5 @@ },

},
"main": "./dist/node/index.cjs",
"types": "./dist/node/index.d.ts",
"module": "./dist/node/index.js",
"main": "./dist/browser/index.cjs",
"types": "./dist/browser/index.d.ts",
"module": "./dist/browser/index.js",
"homepage": "https://xylabs.com",

@@ -51,5 +63,5 @@ "keywords": [

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.9.1",
"@xylabs/tsconfig": "^3.9.1",
"@xylabs/tsconfig-dom": "^3.9.1",
"@xylabs/ts-scripts-yarn3": "^3.10.0",
"@xylabs/tsconfig": "^3.10.0",
"@xylabs/tsconfig-dom": "^3.10.0",
"typescript": "^5.4.5"

@@ -68,4 +80,4 @@ },

"sideEffects": false,
"version": "3.1.13",
"version": "3.2.0",
"type": "module"
}
import type { subtle as subtleType } from 'node:crypto'
export const isBrowser = () => {
return !isWebworker() && window && window.document !== undefined
return !isWebworker() && self.constructor?.name === 'Window'
}

@@ -6,0 +6,0 @@

@@ -7,2 +7,3 @@ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'

},
neutral: {},
node: {

@@ -9,0 +10,0 @@ 'src/node': true,

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