@secretlint/messages-to-markdown
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.1.0](https://github.com/secretlint/secretlint/compare/v2.0.0...v2.1.0) (2020-06-16) | ||
### Features | ||
* **secretlint-rule-no-homedir:** add new rule ([#136](https://github.com/secretlint/secretlint/issues/136)) ([447e2e0](https://github.com/secretlint/secretlint/commit/447e2e0b473e267934ea42ed8788de15dcea9cd8)) | ||
# [2.0.0](https://github.com/secretlint/secretlint/compare/v1.1.0...v2.0.0) (2020-04-27) | ||
@@ -8,0 +19,0 @@ |
@@ -7,4 +7,4 @@ "use strict"; | ||
get: function (_target, p, _receiver) { | ||
return "{{" + String(p) + "}"; | ||
} | ||
return "{{" + String(p) + "}}"; | ||
}, | ||
}); | ||
@@ -11,0 +11,0 @@ Object.keys(messages).forEach(function (messageId) { |
{ | ||
"name": "@secretlint/messages-to-markdown", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Create Markdown text from rule's messages(ids)", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@secretlint/types": "^2.0.0", | ||
"@secretlint/types": "^2.1.0", | ||
"meow": "^6.1.0", | ||
@@ -64,3 +64,3 @@ "ts-node": "^8.8.1", | ||
}, | ||
"gitHead": "d961f968a46561ca424d54d6f34ce94e245a6e16" | ||
"gitHead": "bd05e472ac9e4eb979070626b9a70e21950111e1" | ||
} |
@@ -8,8 +8,11 @@ import { SecretLintRuleLocalizeMessageMulti, SecretLintRuleLocalizeMessages } from "@secretlint/types"; | ||
let output = ""; | ||
const proxy = new Proxy({}, { | ||
get(_target: {}, p: PropertyKey, _receiver: any): any { | ||
return `{{${String(p)}}`; | ||
const proxy = new Proxy( | ||
{}, | ||
{ | ||
get(_target: {}, p: PropertyKey, _receiver: any): any { | ||
return `{{${String(p)}}}`; | ||
}, | ||
} | ||
}); | ||
Object.keys(messages).forEach(messageId => { | ||
); | ||
Object.keys(messages).forEach((messageId) => { | ||
const enMessage = (messages[messageId] as SecretLintRuleLocalizeMessageMulti<any>)["en"]; | ||
@@ -16,0 +19,0 @@ const shortDescription = enMessage(proxy).split("\n")[0]; |
Sorry, the diff of this file is not supported yet
14538
136
Updated@secretlint/types@^2.1.0