an_xiao/police_uniapp/node_modules/shvl/dist/shvl.mjs.map

1 line
1.0 KiB
Plaintext
Raw Permalink Normal View History

2024-07-25 16:03:08 +08:00
{"version":3,"file":"shvl.mjs","sources":["../index.js"],"sourcesContent":["export function get (object, path, def) {\n return (object = (path.split ? path.split('.') : path).reduce(function (obj, p) {\n return obj && obj[p]\n }, object)) === undefined ? def : object;\n};\n\nexport function set (object, path, val, obj) {\n return !/^(__proto__|constructor|prototype)$/.test(path) && ((path = path.split ? path.split('.') : path.slice(0)).slice(0, -1).reduce(function (obj, p) {\n return obj[p] = obj[p] || {};\n }, obj = object)[path.pop()] = val), object;\n};\n"],"names":["get","object","path","def","undefined","split","reduce","obj","p","set","val","test","slice","pop"],"mappings":"SAAgBA,EAAKC,EAAQC,EAAMC,GACjC,YAEgBC,KAFRH,GAAUC,EAAKG,MAAQH,EAAKG,MAAM,KAAOH,GAAMI,OAAO,SAAUC,EAAKC,GAC3E,OAAOD,GAAOA,EAAIC,IACjBP,IAAyBE,EAAMF,WAGpBQ,EAAMR,EAAQC,EAAMQ,EAAKH,GACvC,OAAQ,sCAAsCI,KAAKT,MAAWA,EAAOA,EAAKG,MAAQH,EAAKG,MAAM,KAAOH,EAAKU,MAAM,IAAIA,MAAM,GAAI,GAAGN,OAAO,SAAUC,EAAKC,GACpJ,OAAOD,EAAIC,GAAKD,EAAIC,IAAM,IACnBP,GAAQC,EAAKW,OAASH,GAAMT"}