@garfish/utils
Advanced tools
Comparing version 1.13.2-beta-20221226063216.0 to 1.13.2-beta-20230104063252.0
@@ -437,2 +437,5 @@ // src/utils.ts | ||
} | ||
function getSourceURL(url) { | ||
return url instanceof URL ? url.href : url instanceof Request ? url.url : url; | ||
} | ||
@@ -1285,2 +1288,3 @@ // src/queue.ts | ||
getRenderNode, | ||
getSourceURL, | ||
getType, | ||
@@ -1287,0 +1291,0 @@ hasOwn, |
@@ -50,2 +50,3 @@ import { interfaces } from '@garfish/core'; | ||
declare function createSourcemap(code: string, filename: string): Promise<string>; | ||
declare function getSourceURL(url: string | URL | Request): string; | ||
@@ -170,2 +171,2 @@ declare class Queue { | ||
export { DOMApis, Lock, Node, Queue, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, __REMOVE_NODE__, _extends, appContainerId, assert, callTestCallback, computeErrorUrl, computeStackTraceFromStackProp, coreLog, createAppContainer, createKey, createSourcemap, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, filterUndefinedVal, findTarget, getGarfishDebugInstanceName, getParameterByName, getRenderNode, getType, hasOwn, haveSourcemap, hookObjectProperty, idleCallback, inBrowser, internFunc, isAbsolute, isCss, isCssType, isGarfishConfigType, isHtml, isHtmlType, isJs, isJsType, isJsonp, isObject, isPlainObject, isPrimitive, isPromise, makeMap, makeMapObject, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, routerLog, safari13Deal, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, supportWasm, templateParse, toBase64, toBoolean, toWsProtocol, transformUrl, unique, validURL, warn }; | ||
export { DOMApis, Lock, Node, Queue, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, __REMOVE_NODE__, _extends, appContainerId, assert, callTestCallback, computeErrorUrl, computeStackTraceFromStackProp, coreLog, createAppContainer, createKey, createSourcemap, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, filterUndefinedVal, findTarget, getGarfishDebugInstanceName, getParameterByName, getRenderNode, getSourceURL, getType, hasOwn, haveSourcemap, hookObjectProperty, idleCallback, inBrowser, internFunc, isAbsolute, isCss, isCssType, isGarfishConfigType, isHtml, isHtmlType, isJs, isJsType, isJsonp, isObject, isPlainObject, isPrimitive, isPromise, makeMap, makeMapObject, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, routerLog, safari13Deal, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, supportWasm, templateParse, toBase64, toBoolean, toWsProtocol, transformUrl, unique, validURL, warn }; |
@@ -61,2 +61,3 @@ var __create = Object.create; | ||
getRenderNode: () => getRenderNode, | ||
getSourceURL: () => getSourceURL, | ||
getType: () => getType, | ||
@@ -543,2 +544,5 @@ hasOwn: () => hasOwn, | ||
} | ||
function getSourceURL(url) { | ||
return url instanceof URL ? url.href : url instanceof Request ? url.url : url; | ||
} | ||
@@ -1393,2 +1397,3 @@ // src/queue.ts | ||
getRenderNode, | ||
getSourceURL, | ||
getType, | ||
@@ -1395,0 +1400,0 @@ hasOwn, |
{ | ||
"name": "@garfish/utils", | ||
"version": "1.13.2-beta-20221226063216.0", | ||
"version": "1.13.2-beta-20230104063252.0", | ||
"description": "utils module.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@garfish/core": "1.13.2-beta-20221226063216.0" | ||
"@garfish/core": "1.13.2-beta-20230104063252.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
86945
2912