Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@garfish/utils

Package Overview
Dependencies
Maintainers
8
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garfish/utils - npm Package Compare versions

Comparing version 0.0.47 to 0.0.48-alpha.0

2

dist/container.d.ts

@@ -6,2 +6,2 @@ import { interfaces } from '@garfish/core';

};
export declare function getRenderNode(domGetter: interfaces.DomGetter): Promise<Element>;
export declare function getRenderNode(domGetter: interfaces.DomGetter): Element;

@@ -805,27 +805,2 @@ 'use strict';

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function createAppContainer(name) {

@@ -844,17 +819,15 @@ // Create a temporary node, which is destroyed by the module itself

function getRenderNode(domGetter) {
return __awaiter(this, void 0, void 0, function* () {
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = yield domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
});
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
}

@@ -861,0 +834,0 @@

@@ -797,27 +797,2 @@ 'use strict';

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function createAppContainer(name) {

@@ -836,17 +811,15 @@ // Create a temporary node, which is destroyed by the module itself

function getRenderNode(domGetter) {
return __awaiter(this, void 0, void 0, function* () {
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = yield domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
});
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
}

@@ -853,0 +826,0 @@

@@ -801,27 +801,2 @@ const objectToString = Object.prototype.toString;

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function createAppContainer(name) {

@@ -840,17 +815,15 @@ // Create a temporary node, which is destroyed by the module itself

function getRenderNode(domGetter) {
return __awaiter(this, void 0, void 0, function* () {
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = yield domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
});
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
}

@@ -857,0 +830,0 @@

@@ -801,27 +801,2 @@ const objectToString = Object.prototype.toString;

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function createAppContainer(name) {

@@ -840,17 +815,15 @@ // Create a temporary node, which is destroyed by the module itself

function getRenderNode(domGetter) {
return __awaiter(this, void 0, void 0, function* () {
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = yield domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
});
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
}

@@ -857,0 +830,0 @@

@@ -807,27 +807,2 @@ (function (global, factory) {

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function createAppContainer(name) {

@@ -846,17 +821,15 @@ // Create a temporary node, which is destroyed by the module itself

function getRenderNode(domGetter) {
return __awaiter(this, void 0, void 0, function* () {
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = yield domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
});
assert(domGetter, `Invalid domGetter:\n ${domGetter}.`);
let appWrapperNode = domGetter;
if (typeof domGetter === 'string') {
appWrapperNode = document.querySelector(domGetter);
}
else if (typeof domGetter === 'function') {
appWrapperNode = domGetter();
}
else if (typeof domGetter === 'object') {
appWrapperNode = domGetter;
}
assert(appWrapperNode, `Invalid domGetter: ${domGetter}`);
return appWrapperNode;
}

@@ -863,0 +836,0 @@

{
"name": "@garfish/utils",
"version": "0.0.47",
"version": "0.0.48-alpha.0",
"description": "utils module.",

@@ -40,3 +40,3 @@ "keywords": [

},
"gitHead": "f3102673fbedbe41c10a18dfa0dd034d2d5a41f7"
"gitHead": "eebbd718ae05940127926242ef25b86eed0bc0be"
}
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