Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xylabs/platform

Package Overview
Dependencies
Maintainers
7
Versions
133
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 2.13.20 to 2.13.21

2

dist/browser/index.js
// src/browser/index.ts
var isBrowser = () => {
return typeof window !== "undefined" && typeof window?.document !== "undefined";
return window?.document !== void 0;
};

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

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

export { subtle } from 'crypto';
export { subtle } from 'node:crypto';
export declare const isBrowser: () => boolean;

@@ -3,0 +3,0 @@ export declare const isWebworker: () => boolean;

// src/node/index.ts
import { subtle } from "crypto";
import { subtle } from "node:crypto";
var isBrowser = () => {
return typeof window !== "undefined" && typeof (window == null ? void 0 : window.document) !== "undefined";
return (window == null ? void 0 : window.document) !== void 0;
};

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

@@ -42,2 +42,3 @@ {

"keywords": [
"platform",
"xylabs",

@@ -49,7 +50,10 @@ "utility",

"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.2.10",
"@xylabs/tsconfig": "^3.2.10",
"@xylabs/tsconfig-dom": "^3.2.10",
"typescript": "^5.3.2"
"@xylabs/ts-scripts-yarn3": "^3.2.25",
"@xylabs/tsconfig": "^3.2.25",
"@xylabs/tsconfig-dom": "^3.2.25",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=18"
},
"publishConfig": {

@@ -63,4 +67,4 @@ "access": "public"

"sideEffects": false,
"version": "2.13.20",
"version": "2.13.21",
"type": "module"
}

@@ -1,5 +0,5 @@

import type { subtle as subtleType } from 'crypto'
import type { subtle as subtleType } from 'node:crypto'
export const isBrowser = () => {
return typeof window !== 'undefined' && typeof window?.document !== 'undefined'
return window?.document !== undefined
}

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

@@ -1,5 +0,5 @@

export { subtle } from 'crypto'
export { subtle } from 'node:crypto'
export const isBrowser = () => {
return typeof window !== 'undefined' && typeof window?.document !== 'undefined'
return window?.document !== undefined
}

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

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

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