PHP 8.2.30
Preview: getPropertyByPath.js.map Size: 1.67 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/cosmiconfig/dist/getPropertyByPath.js.map

{"version":3,"sources":["../src/getPropertyByPath.ts"],"names":["getPropertyByPath","source","path","Object","prototype","hasOwnProperty","call","parsedPath","split","reduce","previous","key","undefined"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,SAASA,iBAAT,CACEC,MADF,EAEEC,IAFF,EAGW;AACT,MACE,OAAOA,IAAP,KAAgB,QAAhB,IACAC,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCL,MAArC,EAA6CC,IAA7C,CAFF,EAGE;AACA,WAAOD,MAAM,CAACC,IAAD,CAAb;AACD;;AAED,QAAMK,UAAU,GAAG,OAAOL,IAAP,KAAgB,QAAhB,GAA2BA,IAAI,CAACM,KAAL,CAAW,GAAX,CAA3B,GAA6CN,IAAhE,CARS,CAST;;AACA,SAAOK,UAAU,CAACE,MAAX,CAAkB,CAACC,QAAD,EAAgBC,GAAhB,KAAiC;AACxD,QAAID,QAAQ,KAAKE,SAAjB,EAA4B;AAC1B,aAAOF,QAAP;AACD;;AACD,WAAOA,QAAQ,CAACC,GAAD,CAAf;AACD,GALM,EAKJV,MALI,CAAP;AAMD","sourcesContent":["// Resolves property names or property paths defined with period-delimited\n// strings or arrays of strings. Property names that are found on the source\n// object are used directly (even if they include a period).\n// Nested property names that include periods, within a path, are only\n// understood in array paths.\nfunction getPropertyByPath(\n  source: { [key: string]: unknown },\n  path: string | Array<string>,\n): unknown {\n  if (\n    typeof path === 'string' &&\n    Object.prototype.hasOwnProperty.call(source, path)\n  ) {\n    return source[path];\n  }\n\n  const parsedPath = typeof path === 'string' ? path.split('.') : path;\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  return parsedPath.reduce((previous: any, key): unknown => {\n    if (previous === undefined) {\n      return previous;\n    }\n    return previous[key];\n  }, source);\n}\n\nexport { getPropertyByPath };\n"],"file":"getPropertyByPath.js"}

Directory Contents

Dirs: 0 × Files: 40

Name Size Perms Modified Actions
371 B lrw-r--r-- 2026-02-28 00:28:50
Edit Download
450 B lrw-r--r-- 2026-02-28 00:28:08
Edit Download
612 B lrw-r--r-- 2026-02-28 00:26:44
Edit Download
1.43 KB lrw-r--r-- 2026-02-28 00:28:12
Edit Download
550 B lrw-r--r-- 2026-02-28 00:28:52
Edit Download
480 B lrw-r--r-- 2026-02-28 00:28:16
Edit Download
3.08 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
6.56 KB lrw-r--r-- 2026-02-28 00:28:20
Edit Download
1.07 KB lrw-r--r-- 2026-02-28 00:28:54
Edit Download
1004 B lrw-r--r-- 2026-02-28 00:28:24
Edit Download
3.36 KB lrw-r--r-- 2026-02-28 00:27:04
Edit Download
7.35 KB lrw-r--r-- 2026-02-28 00:28:26
Edit Download
584 B lrw-r--r-- 2026-02-28 00:28:56
Edit Download
524 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
3.06 KB lrw-r--r-- 2026-02-28 00:27:14
Edit Download
6.43 KB lrw-r--r-- 2026-02-28 00:28:28
Edit Download
212 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
280 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
900 B lrw-r--r-- 2026-02-28 00:27:24
Edit Download
1.29 KB lrw-r--r-- 2026-02-28 00:28:30
Edit Download
193 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
301 B lrw-r--r-- 2026-02-28 00:28:32
Edit Download
938 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
1.67 KB lrw-r--r-- 2026-02-28 00:28:34
Edit Download
1.88 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
1.18 KB lrw-r--r-- 2026-02-28 00:28:36
Edit Download
2.93 KB lrw-r--r-- 2026-02-28 00:27:38
Edit Download
6.87 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
132 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
216 B lrw-r--r-- 2026-02-28 00:28:38
Edit Download
1.13 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download
2.68 KB lrw-r--r-- 2026-02-28 00:28:40
Edit Download
295 B lrw-r--r-- 2026-02-28 00:29:00
Edit Download
385 B lrw-r--r-- 2026-02-28 00:28:42
Edit Download
1.29 KB lrw-r--r-- 2026-02-28 00:27:52
Edit Download
2.62 KB lrw-r--r-- 2026-02-28 00:28:42
Edit Download
635 B lrw-r--r-- 2026-02-28 00:29:00
Edit Download
684 B lrw-r--r-- 2026-02-28 00:28:44
Edit Download
113 B lrw-r--r-- 2026-02-28 00:28:00
Edit Download
89 B lrw-r--r-- 2026-02-28 00:28:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).