Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@textlint/utils

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/utils - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

36

CHANGELOG.md

@@ -6,2 +6,38 @@ # Change Log

<a name="1.1.5"></a>
## [1.1.5](https://github.com/textlint/textlint/compare/@textlint/utils@1.1.4...@textlint/utils@1.1.5) (2020-12-22)
### Chores
* **deps:** update dependency [@types](https://github.com/types)/mocha to v8.0.4 ([fd60f20](https://github.com/textlint/textlint/commit/fd60f20))
* **deps:** update dependency [@types](https://github.com/types)/mocha to v8.2.0 ([5ced72d](https://github.com/textlint/textlint/commit/5ced72d))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.2 ([6ac372a](https://github.com/textlint/textlint/commit/6ac372a))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.5 ([b0e73f5](https://github.com/textlint/textlint/commit/b0e73f5))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.11.8 ([33679af](https://github.com/textlint/textlint/commit/33679af))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.10 ([96ba315](https://github.com/textlint/textlint/commit/96ba315))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.12 ([f62f2e3](https://github.com/textlint/textlint/commit/f62f2e3))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.13 ([608afd4](https://github.com/textlint/textlint/commit/608afd4))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.14 ([8417f8a](https://github.com/textlint/textlint/commit/8417f8a))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.5 ([1ed7006](https://github.com/textlint/textlint/commit/1ed7006))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.6 ([507a41b](https://github.com/textlint/textlint/commit/507a41b))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.7 ([64f97eb](https://github.com/textlint/textlint/commit/64f97eb))
* **deps:** update dependency [@types](https://github.com/types)/node to ^14.14.8 ([8de7d16](https://github.com/textlint/textlint/commit/8de7d16))
* **deps:** update minor updates ([7ef0be6](https://github.com/textlint/textlint/commit/7ef0be6))
* **deps:** update minor updates ([2f3dcb6](https://github.com/textlint/textlint/commit/2f3dcb6))
* **deps:** update minor updates ([7a53517](https://github.com/textlint/textlint/commit/7a53517))
* **deps:** update minor updates ([#712](https://github.com/textlint/textlint/issues/712)) ([8c42a19](https://github.com/textlint/textlint/commit/8c42a19))
* **deps:** update patch updates ([3d9660b](https://github.com/textlint/textlint/commit/3d9660b))
* **deps:** update patch updates ([fe2ad4f](https://github.com/textlint/textlint/commit/fe2ad4f))
* **deps:** update patch updates ([e438ff2](https://github.com/textlint/textlint/commit/e438ff2))
* **deps:** update patch updates ([9df50df](https://github.com/textlint/textlint/commit/9df50df))
* **deps:** update patch updates ([4f4c206](https://github.com/textlint/textlint/commit/4f4c206))
* **deps:** update patch updates ([1a0e41f](https://github.com/textlint/textlint/commit/1a0e41f))
* **deps:** update TypeScript deps ([#705](https://github.com/textlint/textlint/issues/705)) ([1baa72a](https://github.com/textlint/textlint/commit/1baa72a))
* use [@monorepo-utils](https://github.com/monorepo-utils)/workspaces-to-typescript-project-references ([#699](https://github.com/textlint/textlint/issues/699)) ([eff1943](https://github.com/textlint/textlint/commit/eff1943))
<a name="1.1.4"></a>

@@ -8,0 +44,0 @@ ## [1.1.4](https://github.com/textlint/textlint/compare/@textlint/utils@1.1.3...@textlint/utils@1.1.4) (2020-07-24)

1

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextlintPackageNamePrefix = exports.normalizeTextlintKeyPath = exports.normalizeTextlintFilterRuleKey = exports.normalizeTextlintPluginKey = exports.normalizeTextlintRulePresetKey = exports.normalizeTextlintRuleKey = exports.normalizeTextlintPresetSubRuleKey = void 0;
var TextlintKeyPath_1 = require("./KeyPath/TextlintKeyPath");

@@ -4,0 +5,0 @@ Object.defineProperty(exports, "normalizeTextlintPresetSubRuleKey", { enumerable: true, get: function () { return TextlintKeyPath_1.normalizeTextlintPresetSubRuleKey; } });

6

lib/KeyPath/KeyPathUtil.js

@@ -19,3 +19,3 @@ "use strict";

*/
exports.splitKeyToPresetSubRule = function (name) {
var splitKeyToPresetSubRule = function (name) {
for (var i = 0; i < patternList.length; i++) {

@@ -36,6 +36,7 @@ var pattern = patternList[i];

};
exports.splitKeyToPresetSubRule = splitKeyToPresetSubRule;
/**
* Remove `prefix` from `text`.
*/
exports.removePrefixFromPackageName = function (prefixList, packageName) {
var removePrefixFromPackageName = function (prefixList, packageName) {
for (var i = 0; i < prefixList.length; i++) {

@@ -60,2 +61,3 @@ var prefix = prefixList[i];

};
exports.removePrefixFromPackageName = removePrefixFromPackageName;
//# sourceMappingURL=KeyPathUtil.js.map

@@ -15,3 +15,3 @@ "use strict";

*/
exports.normalizeTextlintKeyPath = function (keyPath) {
var normalizeTextlintKeyPath = function (keyPath) {
var _a = KeyPathUtil_1.splitKeyToPresetSubRule(keyPath), preset = _a.preset, rule = _a.rule;

@@ -23,9 +23,11 @@ if (!preset) {

};
exports.normalizeTextlintKeyPath = normalizeTextlintKeyPath;
/**
* Normalize to preset-name/rule-name
*/
exports.normalizeTextlintPresetSubRuleKey = function (names) {
var normalizeTextlintPresetSubRuleKey = function (names) {
var preset = names.preset, rule = names.rule;
return exports.normalizeTextlintRulePresetKey(preset) + "/" + exports.normalizeTextlintRuleKey(rule);
};
exports.normalizeTextlintPresetSubRuleKey = normalizeTextlintPresetSubRuleKey;
/**

@@ -35,5 +37,6 @@ * Normalize rule key

*/
exports.normalizeTextlintRuleKey = function (name) {
var normalizeTextlintRuleKey = function (name) {
return KeyPathUtil_1.removePrefixFromPackageName([TextlintPackagePrefix_1.TextlintPackageNamePrefix.rule], name);
};
exports.normalizeTextlintRuleKey = normalizeTextlintRuleKey;
/**

@@ -43,5 +46,6 @@ * Normalize filter rule key

*/
exports.normalizeTextlintFilterRuleKey = function (name) {
var normalizeTextlintFilterRuleKey = function (name) {
return KeyPathUtil_1.removePrefixFromPackageName([TextlintPackagePrefix_1.TextlintPackageNamePrefix.filterRule], name);
};
exports.normalizeTextlintFilterRuleKey = normalizeTextlintFilterRuleKey;
/**

@@ -51,6 +55,7 @@ * Normalize rule preset key

*/
exports.normalizeTextlintRulePresetKey = function (name) {
var normalizeTextlintRulePresetKey = function (name) {
// "preset-<name>" and "textlint-rule-preset-"
return KeyPathUtil_1.removePrefixFromPackageName([TextlintPackagePrefix_1.TextlintPackageNamePrefix.rulePreset, "preset-"], name);
};
exports.normalizeTextlintRulePresetKey = normalizeTextlintRulePresetKey;
/**

@@ -60,5 +65,6 @@ * Normalize plugin key

*/
exports.normalizeTextlintPluginKey = function (name) {
var normalizeTextlintPluginKey = function (name) {
return KeyPathUtil_1.removePrefixFromPackageName([TextlintPackagePrefix_1.TextlintPackageNamePrefix.plugin], name);
};
exports.normalizeTextlintPluginKey = normalizeTextlintPluginKey;
//# sourceMappingURL=TextlintKeyPath.js.map
{
"name": "@textlint/utils",
"version": "1.1.4",
"version": "1.1.5",
"description": "textlint internal utils.",

@@ -46,11 +46,11 @@ "keywords": [

"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.1",
"cross-env": "^7.0.2",
"mocha": "^7.1.1",
"prettier": "^2.0.4",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.14",
"cross-env": "^7.0.3",
"mocha": "^8.2.1",
"prettier": "^2.1.1",
"rimraf": "^3.0.2",
"ts-node": "^8.10.2",
"ts-node-test-register": "^8.0.1",
"typescript": "^3.9.7"
"ts-node": "^9.1.1",
"ts-node-test-register": "^9.0.1",
"typescript": "^4.0.2"
},

@@ -60,3 +60,3 @@ "publishConfig": {

},
"gitHead": "a6fde3a45f9a02732dc358e16aba192b7f3610ad"
"gitHead": "281c00764dde530cf6fd42d0858111594fdf34af"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc