New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 1.0.6 to 1.0.7

16

dist/esm/index.js

@@ -656,2 +656,3 @@ // src/utils.ts

var __MockHead__ = "__garfishmockhead__";
var __REMOVE_NODE__ = "__garfishremovenode__";

@@ -734,2 +735,15 @@ // src/mimeType.ts

}
function isJsonp(mt, src) {
const callbackRegExp = /callback/;
try {
const search = new URL(src).search;
const { type, subtype } = mt || {};
if (type === "application" && subtype === "json" && callbackRegExp.test(search)) {
return true;
}
} catch {
return false;
}
return false;
}

@@ -1026,2 +1040,3 @@ // src/dispatchEvents.ts

__MockHtml__,
__REMOVE_NODE__,
_extends,

@@ -1049,2 +1064,3 @@ assert,

isJs,
isJsonp,
isObject,

@@ -1051,0 +1067,0 @@ isPlainObject,

@@ -19,2 +19,3 @@ var GarfishUtils = (() => {

__MockHtml__: () => __MockHtml__,
__REMOVE_NODE__: () => __REMOVE_NODE__,
_extends: () => _extends,

@@ -42,2 +43,3 @@ assert: () => assert,

isJs: () => isJs,
isJsonp: () => isJsonp,
isObject: () => isObject,

@@ -721,2 +723,3 @@ isPlainObject: () => isPlainObject,

var __MockHead__ = "__garfishmockhead__";
var __REMOVE_NODE__ = "__garfishremovenode__";

@@ -799,2 +802,15 @@ // src/mimeType.ts

}
function isJsonp(mt, src) {
const callbackRegExp = /callback/;
try {
const search = new URL(src).search;
const { type, subtype } = mt || {};
if (type === "application" && subtype === "json" && callbackRegExp.test(search)) {
return true;
}
} catch {
return false;
}
return false;
}

@@ -801,0 +817,0 @@ // src/dispatchEvents.ts

6

dist/index.d.ts

@@ -77,3 +77,3 @@ import { interfaces } from '@garfish/core';

isRemoteModule(node: Node): boolean;
removeElement(el: Element): void;
removeElement(el: Element | Comment): void;
createElement(node: Node): HTMLElement | SVGElement;

@@ -95,2 +95,3 @@ createTextNode(node: Text): globalThis.Text;

declare const __MockHead__ = "__garfishmockhead__";
declare const __REMOVE_NODE__ = "__garfishremovenode__";

@@ -105,2 +106,3 @@ declare type mimeType = ReturnType<typeof parseContentType>;

declare function isJs(mt: mimeType): boolean;
declare function isJsonp(mt: mimeType, src: string): boolean;

@@ -115,2 +117,2 @@ declare function createAppContainer(appInfo: interfaces.AppInfo): {

export { DOMApis, Node, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, _extends, assert, callTestCallback, computeErrorUrl, computeStackTraceFromStackProp, createAppContainer, createKey, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, findTarget, getRenderNode, hasOwn, hookObjectProperty, inBrowser, internFunc, isAbsolute, isCss, isHtml, isJs, isObject, isPlainObject, isPrimitive, isPromise, makeMap, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, templateParse, toBoolean, transformUrl, unique, validURL, warn };
export { DOMApis, Node, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, __REMOVE_NODE__, _extends, assert, callTestCallback, computeErrorUrl, computeStackTraceFromStackProp, createAppContainer, createKey, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, findTarget, getRenderNode, hasOwn, hookObjectProperty, inBrowser, internFunc, isAbsolute, isCss, isHtml, isJs, isJsonp, isObject, isPlainObject, isPrimitive, isPromise, makeMap, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, templateParse, toBoolean, transformUrl, unique, validURL, warn };

@@ -17,2 +17,3 @@ var __defProp = Object.defineProperty;

__MockHtml__: () => __MockHtml__,
__REMOVE_NODE__: () => __REMOVE_NODE__,
_extends: () => _extends,

@@ -40,2 +41,3 @@ assert: () => assert,

isJs: () => isJs,
isJsonp: () => isJsonp,
isObject: () => isObject,

@@ -722,2 +724,3 @@ isPlainObject: () => isPlainObject,

var __MockHead__ = "__garfishmockhead__";
var __REMOVE_NODE__ = "__garfishremovenode__";

@@ -800,2 +803,15 @@ // src/mimeType.ts

}
function isJsonp(mt, src) {
const callbackRegExp = /callback/;
try {
const search = new URL(src).search;
const { type, subtype } = mt || {};
if (type === "application" && subtype === "json" && callbackRegExp.test(search)) {
return true;
}
} catch {
return false;
}
return false;
}

@@ -1093,2 +1109,3 @@ // src/dispatchEvents.ts

__MockHtml__,
__REMOVE_NODE__,
_extends,

@@ -1116,2 +1133,3 @@ assert,

isJs,
isJsonp,
isObject,

@@ -1118,0 +1136,0 @@ isPlainObject,

{
"name": "@garfish/utils",
"version": "1.0.6",
"version": "1.0.7",
"description": "utils module.",

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

"devDependencies": {
"@garfish/core": "1.0.6"
"@garfish/core": "1.0.7"
},

@@ -33,0 +33,0 @@ "publishConfig": {

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