@vue/devtools-shared
Advanced tools
Comparing version 7.3.1 to 7.3.2
@@ -30,5 +30,5 @@ var __create = Object.create; | ||
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@20.14.2__@swc+core@1.5.29_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js | ||
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@20.14.5__@swc+core@1.5.29_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js | ||
var init_esm_shims = __esm({ | ||
"../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@20.14.2__@swc+core@1.5.29_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() { | ||
"../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@20.14.5__@swc+core@1.5.29_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() { | ||
"use strict"; | ||
@@ -38,5 +38,5 @@ } | ||
// ../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js | ||
// ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js | ||
var require_rfdc = __commonJS({ | ||
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports, module) { | ||
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) { | ||
"use strict"; | ||
@@ -54,13 +54,23 @@ init_esm_shims(); | ||
if (opts.circles) return rfdcCircles(opts); | ||
const constructorHandlers = /* @__PURE__ */ new Map(); | ||
constructorHandlers.set(Date, (o) => new Date(o)); | ||
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn))); | ||
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn))); | ||
if (opts.constructorHandlers) { | ||
for (const handler2 of opts.constructorHandlers) { | ||
constructorHandlers.set(handler2[0], handler2[1]); | ||
} | ||
} | ||
let handler = null; | ||
return opts.proto ? cloneProto : clone; | ||
function cloneArray(a, fn) { | ||
var keys = Object.keys(a); | ||
var a2 = new Array(keys.length); | ||
for (var i = 0; i < keys.length; i++) { | ||
var k = keys[i]; | ||
var cur = a[k]; | ||
const keys = Object.keys(a); | ||
const a2 = new Array(keys.length); | ||
for (let i = 0; i < keys.length; i++) { | ||
const k = keys[i]; | ||
const cur = a[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
a2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
a2[k] = new Date(cur); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
a2[k] = handler(cur, fn); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
@@ -76,18 +86,14 @@ a2[k] = copyBuffer(cur); | ||
if (typeof o !== "object" || o === null) return o; | ||
if (o instanceof Date) return new Date(o); | ||
if (Array.isArray(o)) return cloneArray(o, clone); | ||
if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone)); | ||
if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone)); | ||
var o2 = {}; | ||
for (var k in o) { | ||
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { | ||
return handler(o, clone); | ||
} | ||
const o2 = {}; | ||
for (const k in o) { | ||
if (Object.hasOwnProperty.call(o, k) === false) continue; | ||
var cur = o[k]; | ||
const cur = o[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
o2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
o2[k] = new Date(cur); | ||
} else if (cur instanceof Map) { | ||
o2[k] = new Map(cloneArray(Array.from(cur), clone)); | ||
} else if (cur instanceof Set) { | ||
o2[k] = new Set(cloneArray(Array.from(cur), clone)); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
o2[k] = handler(cur, clone); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
@@ -103,17 +109,13 @@ o2[k] = copyBuffer(cur); | ||
if (typeof o !== "object" || o === null) return o; | ||
if (o instanceof Date) return new Date(o); | ||
if (Array.isArray(o)) return cloneArray(o, cloneProto); | ||
if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto)); | ||
if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto)); | ||
var o2 = {}; | ||
for (var k in o) { | ||
var cur = o[k]; | ||
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { | ||
return handler(o, cloneProto); | ||
} | ||
const o2 = {}; | ||
for (const k in o) { | ||
const cur = o[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
o2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
o2[k] = new Date(cur); | ||
} else if (cur instanceof Map) { | ||
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto)); | ||
} else if (cur instanceof Set) { | ||
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto)); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
o2[k] = handler(cur, cloneProto); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
@@ -129,19 +131,29 @@ o2[k] = copyBuffer(cur); | ||
function rfdcCircles(opts) { | ||
var refs = []; | ||
var refsNew = []; | ||
const refs = []; | ||
const refsNew = []; | ||
const constructorHandlers = /* @__PURE__ */ new Map(); | ||
constructorHandlers.set(Date, (o) => new Date(o)); | ||
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn))); | ||
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn))); | ||
if (opts.constructorHandlers) { | ||
for (const handler2 of opts.constructorHandlers) { | ||
constructorHandlers.set(handler2[0], handler2[1]); | ||
} | ||
} | ||
let handler = null; | ||
return opts.proto ? cloneProto : clone; | ||
function cloneArray(a, fn) { | ||
var keys = Object.keys(a); | ||
var a2 = new Array(keys.length); | ||
for (var i = 0; i < keys.length; i++) { | ||
var k = keys[i]; | ||
var cur = a[k]; | ||
const keys = Object.keys(a); | ||
const a2 = new Array(keys.length); | ||
for (let i = 0; i < keys.length; i++) { | ||
const k = keys[i]; | ||
const cur = a[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
a2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
a2[k] = new Date(cur); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
a2[k] = handler(cur, fn); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
a2[k] = copyBuffer(cur); | ||
} else { | ||
var index = refs.indexOf(cur); | ||
const index = refs.indexOf(cur); | ||
if (index !== -1) { | ||
@@ -158,24 +170,20 @@ a2[k] = refsNew[index]; | ||
if (typeof o !== "object" || o === null) return o; | ||
if (o instanceof Date) return new Date(o); | ||
if (Array.isArray(o)) return cloneArray(o, clone); | ||
if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone)); | ||
if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone)); | ||
var o2 = {}; | ||
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { | ||
return handler(o, clone); | ||
} | ||
const o2 = {}; | ||
refs.push(o); | ||
refsNew.push(o2); | ||
for (var k in o) { | ||
for (const k in o) { | ||
if (Object.hasOwnProperty.call(o, k) === false) continue; | ||
var cur = o[k]; | ||
const cur = o[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
o2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
o2[k] = new Date(cur); | ||
} else if (cur instanceof Map) { | ||
o2[k] = new Map(cloneArray(Array.from(cur), clone)); | ||
} else if (cur instanceof Set) { | ||
o2[k] = new Set(cloneArray(Array.from(cur), clone)); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
o2[k] = handler(cur, clone); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
o2[k] = copyBuffer(cur); | ||
} else { | ||
var i = refs.indexOf(cur); | ||
const i = refs.indexOf(cur); | ||
if (i !== -1) { | ||
@@ -194,23 +202,19 @@ o2[k] = refsNew[i]; | ||
if (typeof o !== "object" || o === null) return o; | ||
if (o instanceof Date) return new Date(o); | ||
if (Array.isArray(o)) return cloneArray(o, cloneProto); | ||
if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto)); | ||
if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto)); | ||
var o2 = {}; | ||
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) { | ||
return handler(o, cloneProto); | ||
} | ||
const o2 = {}; | ||
refs.push(o); | ||
refsNew.push(o2); | ||
for (var k in o) { | ||
var cur = o[k]; | ||
for (const k in o) { | ||
const cur = o[k]; | ||
if (typeof cur !== "object" || cur === null) { | ||
o2[k] = cur; | ||
} else if (cur instanceof Date) { | ||
o2[k] = new Date(cur); | ||
} else if (cur instanceof Map) { | ||
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto)); | ||
} else if (cur instanceof Set) { | ||
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto)); | ||
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) { | ||
o2[k] = handler(cur, cloneProto); | ||
} else if (ArrayBuffer.isView(cur)) { | ||
o2[k] = copyBuffer(cur); | ||
} else { | ||
var i = refs.indexOf(cur); | ||
const i = refs.indexOf(cur); | ||
if (i !== -1) { | ||
@@ -217,0 +221,0 @@ o2[k] = refsNew[i]; |
{ | ||
"name": "@vue/devtools-shared", | ||
"type": "module", | ||
"version": "7.3.1", | ||
"version": "7.3.2", | ||
"author": "webfansplz", | ||
@@ -24,6 +24,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"rfdc": "^1.3.1" | ||
"rfdc": "^1.4.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.14.2" | ||
"@types/node": "^20.14.5" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30768
719
Updatedrfdc@^1.4.1