summaryrefslogtreecommitdiff
path: root/src/node_modules/class-validator/esm2015/utils.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/class-validator/esm2015/utils.js.map')
-rw-r--r--src/node_modules/class-validator/esm2015/utils.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_modules/class-validator/esm2015/utils.js.map b/src/node_modules/class-validator/esm2015/utils.js.map
new file mode 100644
index 0000000..fc34ba7
--- /dev/null
+++ b/src/node_modules/class-validator/esm2015/utils.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,wGAAwG;AAExG,MAAM,UAAU,SAAS,CAAU,CAAM;IACrC,OAAO,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC;AAC/E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAI,GAAoC;IAClE,IAAI,GAAG,YAAY,GAAG,EAAE;QACpB,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;KACnC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC","file":"utils.js","sourcesContent":["// https://github.com/TylorS/typed-is-promise/blob/abf1514e1b6961adfc75765476b0debb96b2c3ae/src/index.ts\n\nexport function isPromise<T = any>(p: any): p is Promise<T> {\n return p !== null && typeof p === \"object\" && typeof p.then === \"function\";\n}\n\n/**\n * Convert Map, Set to Array\n */\nexport function convertToArray<T>(val: Array<T> | Set<T> | Map<any, T>): Array<T> {\n if (val instanceof Map) {\n return Array.from(val.values());\n }\n return Array.isArray(val) ? val : Array.from(val);\n}\n"],"sourceRoot":"."} \ No newline at end of file