Socket
Socket
Sign inDemoInstall

@polkadot/x-global

Package Overview
Dependencies
Maintainers
2
Versions
629
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 9.7.2 to 10.0.1

2

cjs/packageInfo.js

@@ -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'
};
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