Updated build for crytojs

This commit is contained in:
Sambo Chea 2022-02-15 11:58:10 +07:00
parent 8453af2efa
commit 59d4873781
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
4 changed files with 19 additions and 3 deletions

2
dist/index.js.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAIiB;AAER,uFALL,eAAM,OAKK;AAAE,sGAJb,8BAAqB,OAIa;AAAE,kGAHpC,0BAAiB,OAGoC"} {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA2E;AAElE,uFAFA,eAAM,OAEA;AAAE,sGAFA,8BAAqB,OAEA;AAAE,kGAFA,0BAAiB,OAEA"}

View File

@ -2,3 +2,7 @@ export declare const readFileToStringDefaultEncoding: (
relativeFilePath: string relativeFilePath: string
) => string ) => string
export declare const readFileToJson: (relativeFilePath: string) => any export declare const readFileToJson: (relativeFilePath: string) => any
export declare const writeFileFromString: (
relativeFilePath: string,
content: string
) => void

View File

@ -43,7 +43,10 @@ var __importStar =
return result return result
} }
Object.defineProperty(exports, "__esModule", { value: true }) Object.defineProperty(exports, "__esModule", { value: true })
exports.readFileToJson = exports.readFileToStringDefaultEncoding = void 0 exports.writeFileFromString =
exports.readFileToJson =
exports.readFileToStringDefaultEncoding =
void 0
var fs = __importStar(require("fs")) var fs = __importStar(require("fs"))
var path = __importStar(require("path")) var path = __importStar(require("path"))
var config_1 = require("../config") var config_1 = require("../config")
@ -58,4 +61,13 @@ var readFileToJson = function (relativeFilePath) {
) )
} }
exports.readFileToJson = readFileToJson exports.readFileToJson = readFileToJson
var writeFileFromString = function (relativeFilePath, content) {
var baseDir = path.dirname(relativeFilePath)
var absolutePath = path.resolve(relativeFilePath)
if (!fs.existsSync(baseDir)) {
fs.mkdirSync(baseDir, { recursive: true })
}
fs.writeFileSync(absolutePath, content)
}
exports.writeFileFromString = writeFileFromString
//# sourceMappingURL=file.util.js.map //# sourceMappingURL=file.util.js.map

View File

@ -1 +1 @@
{"version":3,"file":"file.util.js","sourceRoot":"","sources":["../../src/util/file.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwB;AACxB,yCAA4B;AAC5B,oCAAiD;AAE1C,IAAM,+BAA+B,GAAG,UAC3C,gBAAwB;IAExB,IAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,8BAAqB,CAAC,CAAA;AAC/D,CAAC,CAAA;AALY,QAAA,+BAA+B,mCAK3C;AAEM,IAAM,cAAc,GAAG,UAAC,gBAAwB;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,uCAA+B,EAAC,gBAAgB,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B"} {"version":3,"file":"file.util.js","sourceRoot":"","sources":["../../src/util/file.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwB;AACxB,yCAA4B;AAC5B,oCAAiD;AAE1C,IAAM,+BAA+B,GAAG,UAC3C,gBAAwB;IAExB,IAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,8BAAqB,CAAC,CAAA;AAC/D,CAAC,CAAA;AALY,QAAA,+BAA+B,mCAK3C;AAEM,IAAM,cAAc,GAAG,UAAC,gBAAwB;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,uCAA+B,EAAC,gBAAgB,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B;AAEM,IAAM,mBAAmB,GAAG,UAC/B,gBAAwB,EACxB,OAAe;IAEf,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC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