Socket
Socket
Sign inDemoInstall

@spectrum-web-components/base

Package Overview
Dependencies
Maintainers
7
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/base - npm Package Compare versions

Comparing version 0.5.9-devmode.31 to 0.6.0

test/base-devmode.test.js

4

package.json
{
"name": "@spectrum-web-components/base",
"version": "0.5.9-devmode.31+8303f3a2a",
"version": "0.6.0",
"publishConfig": {

@@ -105,3 +105,3 @@ "access": "public"

"sideEffects": false,
"gitHead": "8303f3a2a90b0aedc15158797662ccfa8f4a2031"
"gitHead": "50cac779bbb0d6735c2061f1eceb86b9daf9b22b"
}

@@ -97,13 +97,14 @@ var __defProp = Object.defineProperty;

issuedWarnings: /* @__PURE__ */ new Set(),
issueWarning: (id, warning, url, issues) => {
var _a, _b, _c, _d, _e, _f;
if (window.__swc.issuedWarnings.has(id))
warn: (element, message, url, { type = "api", level = "default", issues } = {}) => {
var _a, _b, _c;
const { localName = "base" } = element || {};
const id = `${localName}:${type}:${level}`;
if (!window.__swc.verbose && window.__swc.issuedWarnings.has(id))
return;
window.__swc.issuedWarnings.add(id);
const [tagName, type, level] = id.split(":");
if ((_b = (_a = window.__swc) == null ? void 0 : _a.ignoreWarningLocalNames) == null ? void 0 : _b[tagName])
if ((_a = window.__swc.ignoreWarningLocalNames) == null ? void 0 : _a[localName])
return;
if ((_d = (_c = window.__swc) == null ? void 0 : _c.ignoreWarningTypes) == null ? void 0 : _d[type])
if ((_b = window.__swc.ignoreWarningTypes) == null ? void 0 : _b[type])
return;
if ((_f = (_e = window.__swc) == null ? void 0 : _e.ignoreWarningLevels) == null ? void 0 : _f[level])
if ((_c = window.__swc.ignoreWarningLevels) == null ? void 0 : _c[level])
return;

@@ -116,7 +117,21 @@ let listedIssues = "";

const intro = level === "deprecation" ? "DEPRECATION NOTICE: " : "";
console.warn(intro + warning + "\n" + listedIssues + "\n" + url);
const inspectElement = element ? "\nInspect this issue in the follow element:" : "";
const displayURL = (element ? "\n\n" : "\n") + url + "\n";
const messages = [];
messages.push(intro + message + "\n" + listedIssues + inspectElement);
if (element) {
messages.push(element);
}
messages.push(displayURL, {
data: {
localName,
type,
level
}
});
console.warn(...messages);
}
};
window.__swc.issueWarning("base:default:default", "Spectrum Web Components is in dev mode. Not recommended for production!", "https://opensource.adobe.com/spectrum-web-components/dev-mode/");
window.__swc.warn(void 0, "Spectrum Web Components is in dev mode. Not recommended for production!", "https://opensource.adobe.com/spectrum-web-components/dev-mode/", { type: "default" });
}
//# sourceMappingURL=Base.dev.js.map

@@ -97,13 +97,14 @@ var __defProp = Object.defineProperty;

issuedWarnings: /* @__PURE__ */ new Set(),
issueWarning: (id, warning, url, issues) => {
var _a, _b, _c, _d, _e, _f;
if (window.__swc.issuedWarnings.has(id))
warn: (element, message, url, { type = "api", level = "default", issues } = {}) => {
var _a, _b, _c;
const { localName = "base" } = element || {};
const id = `${localName}:${type}:${level}`;
if (!window.__swc.verbose && window.__swc.issuedWarnings.has(id))
return;
window.__swc.issuedWarnings.add(id);
const [tagName, type, level] = id.split(":");
if ((_b = (_a = window.__swc) == null ? void 0 : _a.ignoreWarningLocalNames) == null ? void 0 : _b[tagName])
if ((_a = window.__swc.ignoreWarningLocalNames) == null ? void 0 : _a[localName])
return;
if ((_d = (_c = window.__swc) == null ? void 0 : _c.ignoreWarningTypes) == null ? void 0 : _d[type])
if ((_b = window.__swc.ignoreWarningTypes) == null ? void 0 : _b[type])
return;
if ((_f = (_e = window.__swc) == null ? void 0 : _e.ignoreWarningLevels) == null ? void 0 : _f[level])
if ((_c = window.__swc.ignoreWarningLevels) == null ? void 0 : _c[level])
return;

@@ -116,7 +117,21 @@ let listedIssues = "";

const intro = level === "deprecation" ? "DEPRECATION NOTICE: " : "";
console.warn(intro + warning + "\n" + listedIssues + "\n" + url);
const inspectElement = element ? "\nInspect this issue in the follow element:" : "";
const displayURL = (element ? "\n\n" : "\n") + url + "\n";
const messages = [];
messages.push(intro + message + "\n" + listedIssues + inspectElement);
if (element) {
messages.push(element);
}
messages.push(displayURL, {
data: {
localName,
type,
level
}
});
console.warn(...messages);
}
};
window.__swc.issueWarning("base:default:default", "Spectrum Web Components is in dev mode. Not recommended for production!", "https://opensource.adobe.com/spectrum-web-components/dev-mode/");
window.__swc.warn(void 0, "Spectrum Web Components is in dev mode. Not recommended for production!", "https://opensource.adobe.com/spectrum-web-components/dev-mode/", { type: "default" });
}
//# sourceMappingURL=Base.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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