tsoa
This commit is contained in:
12
node_modules/@tsoa/cli/dist/utils/jsonUtils.js
generated
vendored
Normal file
12
node_modules/@tsoa/cli/dist/utils/jsonUtils.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.safeFromJson = safeFromJson;
|
||||
function safeFromJson(json) {
|
||||
try {
|
||||
return JSON.parse(json);
|
||||
}
|
||||
catch {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=jsonUtils.js.map
|
||||
Reference in New Issue
Block a user