69750a5ee41f74fe121d5ea287a1179b73205a3f46c72cdf59467fcdcac9a942.json 1.2 KB

1
  1. {"ast":null,"code":"import * as uuid from \"uuid\";\nexport function assertUuid(str, which) {\n if (!uuid.validate(str)) {\n const msg = which !== undefined ? `Invalid UUID for ${which}: ${str}` : `Invalid UUID: ${str}`;\n throw new Error(msg);\n }\n return str;\n}","map":{"version":3,"names":["uuid","assertUuid","str","which","validate","msg","undefined","Error"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/langsmith/dist/utils/_uuid.js"],"sourcesContent":["import * as uuid from \"uuid\";\nexport function assertUuid(str, which) {\n if (!uuid.validate(str)) {\n const msg = which !== undefined\n ? `Invalid UUID for ${which}: ${str}`\n : `Invalid UUID: ${str}`;\n throw new Error(msg);\n }\n return str;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,IAAI,MAAM,MAAM;AAC5B,OAAO,SAASC,UAAUA,CAACC,GAAG,EAAEC,KAAK,EAAE;EACnC,IAAI,CAACH,IAAI,CAACI,QAAQ,CAACF,GAAG,CAAC,EAAE;IACrB,MAAMG,GAAG,GAAGF,KAAK,KAAKG,SAAS,GACzB,oBAAoBH,KAAK,KAAKD,GAAG,EAAE,GACnC,iBAAiBA,GAAG,EAAE;IAC5B,MAAM,IAAIK,KAAK,CAACF,GAAG,CAAC;EACxB;EACA,OAAOH,GAAG;AACd","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}