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

@polkadot/x-global

Package Overview
Dependencies
Maintainers
2
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/x-global - npm Package Compare versions

Comparing version 10.1.11 to 10.1.12

6

cjs/index.js

@@ -15,14 +15,11 @@ "use strict";

exports.xglobal = void 0;
var _packageInfo = require("./packageInfo");
// Copyright 2017-2022 @polkadot/x-global authors & contributors
// SPDX-License-Identifier: Apache-2.0
function evaluateThis(fn) {
return fn('return this');
}
const xglobal = typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : evaluateThis(Function);
exports.xglobal = xglobal;
function extractGlobal(name, fallback) {

@@ -35,3 +32,2 @@ // Not quite sure why this is here - snuck in with TS 4.7.2 with no real idea

}
function exposeGlobal(name, fallback) {

@@ -38,0 +34,0 @@ if (typeof xglobal[name] === 'undefined') {

4

cjs/packageInfo.js

@@ -9,3 +9,5 @@ "use strict";

// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
const packageInfo = {

@@ -15,4 +17,4 @@ name: '@polkadot/x-global',

type: 'cjs',
version: '10.1.11'
version: '10.1.12'
};
exports.packageInfo = packageInfo;
// Copyright 2017-2022 @polkadot/x-global authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { packageInfo } from "./packageInfo.js"; // Ensure that we are able to run this without any @types/node definitions
export { packageInfo } from "./packageInfo.js";
// Ensure that we are able to run this without any @types/node definitions
// and without having lib: ['dom'] in our TypeScript configuration

@@ -10,3 +13,2 @@ // (may not be available in all environments, e.g. Deno springs to mind)

}
export const xglobal = typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : evaluateThis(Function);

@@ -13,0 +15,0 @@ export function extractGlobal(name, fallback) {

@@ -20,3 +20,3 @@ {

"type": "module",
"version": "10.1.11",
"version": "10.1.12",
"main": "./cjs/index.js",

@@ -46,4 +46,4 @@ "module": "./index.js",

"dependencies": {
"@babel/runtime": "^7.19.4"
"@babel/runtime": "^7.20.1"
}
}
// Copyright 2017-2022 @polkadot/x-global authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = {

@@ -8,3 +10,3 @@ name: '@polkadot/x-global',

type: 'esm',
version: '10.1.11'
version: '10.1.12'
};
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