@polkadot/x-global
Advanced tools
Comparing version 9.7.2 to 10.0.1
@@ -14,4 +14,4 @@ "use strict"; | ||
type: 'cjs', | ||
version: '9.7.2' | ||
version: '10.0.1' | ||
}; | ||
exports.packageInfo = packageInfo; |
export { packageInfo } from './packageInfo'; | ||
declare type GlobalNames = keyof typeof window; | ||
declare type GlobalType<T extends keyof typeof window> = typeof window[T]; | ||
export declare const xglobal: typeof globalThis; | ||
declare type GlobalThis = typeof globalThis & Record<string, unknown>; | ||
declare type GlobalNames = keyof typeof globalThis; | ||
declare type GlobalType<N extends GlobalNames> = typeof globalThis[N]; | ||
export declare const xglobal: GlobalThis; | ||
export declare function extractGlobal<N extends GlobalNames, T extends GlobalType<N>>(name: N, fallback: unknown): T; | ||
export declare function exposeGlobal<N extends GlobalNames>(name: N, fallback: unknown): void; |
// Copyright 2017-2022 @polkadot/x-global authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
export { packageInfo } from "./packageInfo.js"; | ||
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 | ||
// (may not be available in all environments, e.g. Deno springs to mind) | ||
@@ -5,0 +7,0 @@ function evaluateThis(fn) { |
@@ -20,3 +20,3 @@ { | ||
"type": "module", | ||
"version": "9.7.2", | ||
"version": "10.0.1", | ||
"main": "./cjs/index.js", | ||
@@ -33,3 +33,2 @@ "module": "./index.js", | ||
}, | ||
"./mod.d.ts": "./mod.d.ts", | ||
"./package.json": "./package.json", | ||
@@ -36,0 +35,0 @@ "./packageInfo.js": { |
@@ -8,3 +8,3 @@ // Copyright 2017-2022 @polkadot/x-global authors & contributors | ||
type: 'esm', | ||
version: '9.7.2' | ||
version: '10.0.1' | ||
}; |
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
5362
87
9