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

@xylabs/crypto

Package Overview
Dependencies
Maintainers
7
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/crypto - npm Package Compare versions

Comparing version 2.11.22 to 2.11.23

1

dist/browser/Crypto.js

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

// src/browser/Crypto.ts
import Crypto from "crypto-js";

@@ -3,0 +2,0 @@ export {

11

dist/browser/cryptoPolyfill.js

@@ -1,12 +0,9 @@

// src/browser/Crypto.ts
import Crypto from "crypto-js";
// src/browser/cryptoPolyfill.ts
var isBrowser = () => {
import { Crypto } from "./Crypto";
const isBrowser = () => {
return typeof window !== "undefined" && typeof window?.document !== "undefined";
};
var isWebworker = () => {
const isWebworker = () => {
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
};
var cryptoPolyfill = () => {
const cryptoPolyfill = () => {
const global = isBrowser() ? window : isWebworker() ? self : void 0;

@@ -13,0 +10,0 @@ if (global) {

@@ -1,25 +0,3 @@

// src/browser/Crypto.ts
import Crypto from "crypto-js";
// src/browser/cryptoPolyfill.ts
var isBrowser = () => {
return typeof window !== "undefined" && typeof window?.document !== "undefined";
};
var isWebworker = () => {
return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
};
var cryptoPolyfill = () => {
const global = isBrowser() ? window : isWebworker() ? self : void 0;
if (global) {
if (global.Crypto === void 0) {
global.Crypto = Crypto;
} else {
global.Crypto = { ...Crypto, ...global.Crypto };
}
}
};
export {
Crypto,
cryptoPolyfill
};
export * from "./Crypto";
export * from "./cryptoPolyfill";
//# sourceMappingURL=index.js.map

@@ -29,2 +29,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/node/Crypto.ts
var Crypto_exports = {};

@@ -31,0 +33,0 @@ __export(Crypto_exports, {

@@ -19,2 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/node/cryptoPolyfill.ts
var cryptoPolyfill_exports = {};

@@ -25,3 +27,3 @@ __export(cryptoPolyfill_exports, {

module.exports = __toCommonJS(cryptoPolyfill_exports);
const cryptoPolyfill = () => {
var cryptoPolyfill = () => {
return;

@@ -28,0 +30,0 @@ };

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {

@@ -14,13 +20,32 @@ if (from && typeof from === "object" || typeof from === "function") {

};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/node/index.ts
var node_exports = {};
__export(node_exports, {
Crypto: () => import_crypto.default,
cryptoPolyfill: () => cryptoPolyfill
});
module.exports = __toCommonJS(node_exports);
__reExport(node_exports, require("./Crypto"), module.exports);
__reExport(node_exports, require("./cryptoPolyfill"), module.exports);
// src/node/Crypto.ts
var import_crypto = __toESM(require("crypto"));
// src/node/cryptoPolyfill.ts
var cryptoPolyfill = () => {
return;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
...require("./Crypto"),
...require("./cryptoPolyfill")
Crypto,
cryptoPolyfill
});
//# sourceMappingURL=index.js.map

@@ -58,5 +58,5 @@ {

"@types/node": "^20.7.0",
"@xylabs/ts-scripts-yarn3": "^3.0.70",
"@xylabs/tsconfig": "^3.0.70",
"@xylabs/tsconfig-dom": "^3.0.70",
"@xylabs/ts-scripts-yarn3": "^3.0.72",
"@xylabs/tsconfig": "^3.0.72",
"@xylabs/tsconfig-dom": "^3.0.72",
"typescript": "^5.2.2"

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

"sideEffects": false,
"version": "2.11.22",
"version": "2.11.23",
"xy": {

@@ -75,0 +75,0 @@ "compile": {

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

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