@polkadot/x-global
Advanced tools
Comparing version 10.1.11 to 10.1.12
@@ -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') { |
@@ -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' | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5368
88
Updated@babel/runtime@^7.20.1