@secretlint/source-creator
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createRawSource = void 0; | ||
var fs_1 = __importDefault(require("fs")); | ||
@@ -23,3 +24,3 @@ var util_1 = __importDefault(require("util")); | ||
}; | ||
exports.createRawSource = function (filePath) { | ||
var createRawSource = function (filePath) { | ||
return readFile(filePath).then(function (content) { | ||
@@ -31,6 +32,7 @@ var contentType = detectContentType(filePath, content); | ||
ext: path_1.default.extname(filePath), | ||
contentType: contentType | ||
contentType: contentType, | ||
}; | ||
}); | ||
}; | ||
exports.createRawSource = createRawSource; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@secretlint/source-creator", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Create SecretLintRawSource from content.", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@secretlint/types": "^2.1.1", | ||
"@secretlint/types": "^2.2.0", | ||
"istextorbinary": "^3.3.0" | ||
@@ -51,11 +51,11 @@ }, | ||
"@types/istextorbinary": "2.3.0", | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^13.7.4", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^14.14.41", | ||
"cross-env": "^7.0.0", | ||
"mocha": "^7.0.1", | ||
"mocha": "^8.3.2", | ||
"prettier": "^2.0.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^8.6.2", | ||
"ts-node-test-register": "^8.0.1", | ||
"typescript": "^3.8.2" | ||
"ts-node": "^9.1.1", | ||
"ts-node-test-register": "^9.0.1", | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -65,3 +65,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ee794cdf7b9aa5f2ec756e361d269b24b6e40070" | ||
"gitHead": "64bf33d6ee6e31a8416bf2bde6ee27a700955fb1" | ||
} |
@@ -19,3 +19,3 @@ import fs from "fs"; | ||
export const createRawSource = (filePath: string): Promise<SecretLintRawSource> => { | ||
return readFile(filePath).then(content => { | ||
return readFile(filePath).then((content) => { | ||
const contentType = detectContentType(filePath, content); | ||
@@ -26,5 +26,5 @@ return { | ||
ext: path.extname(filePath), | ||
contentType | ||
contentType, | ||
}; | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
62
6947
7
Updated@secretlint/types@^2.2.0