New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@symbo.ls/utils

Package Overview
Dependencies
Maintainers
0
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/utils - npm Package Compare versions

Comparing version 2.11.417 to 2.11.420

12

dist/cjs/browser.js

@@ -26,10 +26,12 @@ "use strict";

module.exports = __toCommonJS(browser_exports);
var toggleFullscreen = (el) => {
if (!document.fullscreenElement) {
el.node.requestFullscreen().catch((err) => {
var toggleFullscreen = async (el) => {
if (!document.fullscreenElement && el.node) {
try {
await el.node.requestFullscreen();
} catch (err) {
console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`);
});
}
} else {
document.exitFullscreen();
await document.exitFullscreen();
}
};

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

var deepCloneWithExtend = (obj, excludeFrom = ["node"], options = {}) => {
const o = (0, import_types.isArray)(obj) ? [] : {};
const o = options.window ? (0, import_types.isArray)(obj) ? new options.window.Array([]) : new options.window.Object({}) : (0, import_types.isArray)(obj) ? [] : {};
for (const prop in obj) {

@@ -1112,2 +1112,8 @@ if (!Object.prototype.hasOwnProperty.call(obj, prop))

}
if (el.parent && el.parent.childExtend) {
const foundString = (0, import_types.isString)(el.parent.childExtend) && el.parent.childExtend === key;
const foundInArray = (0, import_types.isArray)(el.parent.childExtend) && el.parent.childExtend.filter((v) => v === key).length;
if (foundString || foundInArray)
return el;
}
};

@@ -1114,0 +1120,0 @@ var getExtendsInElement = (obj) => {

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

var deepCloneWithExtend = (obj, excludeFrom = ["node"], options = {}) => {
const o = (0, import_types.isArray)(obj) ? [] : {};
const o = options.window ? (0, import_types.isArray)(obj) ? new options.window.Array([]) : new options.window.Object({}) : (0, import_types.isArray)(obj) ? [] : {};
for (const prop in obj) {

@@ -1112,2 +1112,8 @@ if (!Object.prototype.hasOwnProperty.call(obj, prop))

}
if (el.parent && el.parent.childExtend) {
const foundString = (0, import_types.isString)(el.parent.childExtend) && el.parent.childExtend === key;
const foundInArray = (0, import_types.isArray)(el.parent.childExtend) && el.parent.childExtend.filter((v) => v === key).length;
if (foundString || foundInArray)
return el;
}
};

@@ -1542,9 +1548,11 @@ var getExtendsInElement = (obj) => {

// src/browser.js
var toggleFullscreen = (el) => {
if (!document.fullscreenElement) {
el.node.requestFullscreen().catch((err) => {
var toggleFullscreen = async (el) => {
if (!document.fullscreenElement && el.node) {
try {
await el.node.requestFullscreen();
} catch (err) {
console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`);
});
}
} else {
document.exitFullscreen();
await document.exitFullscreen();
}

@@ -1551,0 +1559,0 @@ };

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

var deepCloneWithExtend = (obj, excludeFrom = ["node"], options = {}) => {
const o = (0, import_types.isArray)(obj) ? [] : {};
const o = options.window ? (0, import_types.isArray)(obj) ? new options.window.Array([]) : new options.window.Object({}) : (0, import_types.isArray)(obj) ? [] : {};
for (const prop in obj) {

@@ -1112,2 +1112,8 @@ if (!Object.prototype.hasOwnProperty.call(obj, prop))

}
if (el.parent && el.parent.childExtend) {
const foundString = (0, import_types.isString)(el.parent.childExtend) && el.parent.childExtend === key;
const foundInArray = (0, import_types.isArray)(el.parent.childExtend) && el.parent.childExtend.filter((v) => v === key).length;
if (foundString || foundInArray)
return el;
}
};

@@ -1114,0 +1120,0 @@ var getExtendsInElement = (obj) => {

{
"name": "@symbo.ls/utils",
"version": "2.11.417",
"version": "2.11.420",
"author": "symbo.ls",

@@ -29,3 +29,3 @@ "files": [

},
"gitHead": "d3f5ad50e57320d72c7d50bc0309f3308e6b8ff2"
"gitHead": "115d994931e8dae83701a8a98f2722e1a59ae4a2"
}
'use strict'
export const toggleFullscreen = (el) => {
if (!document.fullscreenElement) {
el.node.requestFullscreen().catch((err) => {
export const toggleFullscreen = async (el) => {
if (!document.fullscreenElement && el.node) {
try {
await el.node.requestFullscreen()
} catch (err) {
console.warn(`Error attempting to enable fullscreen mode: ${err.message} (${err.name})`)
})
}
} else {
document.exitFullscreen()
await document.exitFullscreen()
}
}
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