Socket
Socket
Sign inDemoInstall

@polkadot/ui-settings

Package Overview
Dependencies
Maintainers
2
Versions
683
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/ui-settings - npm Package Compare versions

Comparing version 3.5.1 to 3.6.1

4

bundle-polkadot-ui-settings.js

@@ -1169,3 +1169,3 @@ (function (global, factory) {

this.__internal__emitter = new EventEmitter();
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (util$7.hasProcess && process.env && process.env['WS_URL']) || ENDPOINT_DEFAULT.value;
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (util$7.hasProcess && process.env?.['WS_URL']) || ENDPOINT_DEFAULT.value;
this.__internal__apiType = { param: this.__internal__apiUrl, type: 'json-rpc' };

@@ -1307,3 +1307,3 @@ this.__internal__camera = withDefault(CAMERA, settings.camera, CAMERA_DEFAULT);

const packageInfo = { name: '@polkadot/ui-settings', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.5.1' };
const packageInfo = { name: '@polkadot/ui-settings', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.6.1' };

@@ -1310,0 +1310,0 @@ exports.ENDPOINT_DEFAULT = ENDPOINT_DEFAULT;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageInfo = void 0;
exports.packageInfo = { name: '@polkadot/ui-settings', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.5.1' };
exports.packageInfo = { name: '@polkadot/ui-settings', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.6.1' };

@@ -20,3 +20,3 @@ "use strict";

// will become deprecated for supporting substrate connect light clients. apiType structure should be used instead
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (util_1.hasProcess && process.env && process.env['WS_URL']) || index_js_1.ENDPOINT_DEFAULT.value;
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (util_1.hasProcess && process.env?.['WS_URL']) || index_js_1.ENDPOINT_DEFAULT.value;
this.__internal__apiType = { param: this.__internal__apiUrl, type: 'json-rpc' };

@@ -23,0 +23,0 @@ this.__internal__camera = withDefault(index_js_1.CAMERA, settings.camera, index_js_1.CAMERA_DEFAULT);

@@ -21,3 +21,3 @@ {

"type": "module",
"version": "3.5.1",
"version": "3.6.1",
"main": "./cjs/index.js",

@@ -131,7 +131,7 @@ "module": "./index.js",

"dependencies": {
"@polkadot/networks": "^12.3.1",
"@polkadot/util": "^12.3.1",
"@polkadot/networks": "^12.4.1",
"@polkadot/util": "^12.4.1",
"eventemitter3": "^5.0.1",
"store": "^2.0.12",
"tslib": "^2.5.3"
"tslib": "^2.6.2"
},

@@ -138,0 +138,0 @@ "peerDependencies": {

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

export const packageInfo = { name: '@polkadot/ui-settings', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.5.1' };
export const packageInfo = { name: '@polkadot/ui-settings', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.6.1' };

@@ -16,3 +16,3 @@ import { EventEmitter } from 'eventemitter3';

// will become deprecated for supporting substrate connect light clients. apiType structure should be used instead
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (hasProcess && process.env && process.env['WS_URL']) || ENDPOINT_DEFAULT.value;
this.__internal__apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (hasProcess && process.env?.['WS_URL']) || ENDPOINT_DEFAULT.value;
this.__internal__apiType = { param: this.__internal__apiUrl, type: 'json-rpc' };

@@ -19,0 +19,0 @@ this.__internal__camera = withDefault(CAMERA, settings.camera, CAMERA_DEFAULT);

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

export type Option = {
export interface Option {
disabled?: boolean;

@@ -6,3 +6,3 @@ info: string;

value: string | number;
};
}
export interface SettingsStruct {

@@ -9,0 +9,0 @@ apiType: Endpoint;

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