eyo-kernel
Advanced tools
Comparing version 2.2.1 to 2.3.0
# Changelog | ||
## v2.3.0 | ||
- Доработки для использования в клиентских скриптах. | ||
## v2.2.1 | ||
@@ -4,0 +7,0 @@ - Добавлено слово «чётномерная» в безопасный словарь. |
@@ -5,4 +5,4 @@ 'use strict'; | ||
const path = require('path'); | ||
const safeDict = path.resolve(__dirname, '../dict/safe.txt'); | ||
const notSafeDict = path.resolve(__dirname, '../dict/not_safe.txt'); | ||
const pathSafeDict = '../dict/safe.txt'; | ||
const pathNotSafeDict = path.resolve(__dirname, '../dict/not_safe.txt'); | ||
@@ -46,3 +46,4 @@ module.exports = class Dictionary { | ||
loadSafe(callback) { | ||
this.load(safeDict, callback); | ||
const preparedPath = path.resolve(__dirname, pathSafeDict); | ||
this.load(preparedPath, callback); | ||
} | ||
@@ -54,3 +55,4 @@ | ||
loadSafeSync() { | ||
this.loadSync(safeDict); | ||
const preparedPath = path.resolve(__dirname, pathSafeDict); | ||
this.loadSync(preparedPath); | ||
} | ||
@@ -64,3 +66,4 @@ | ||
loadNotSafe(callback) { | ||
this.load(notSafeDict, callback); | ||
const preparedPath = path.resolve(__dirname, pathNotSafeDict); | ||
this.load(preparedPath, callback); | ||
} | ||
@@ -72,3 +75,4 @@ | ||
loadNotSafeSync() { | ||
this.loadSync(notSafeDict); | ||
const preparedPath = path.resolve(__dirname, pathNotSafeDict); | ||
this.loadSync(preparedPath); | ||
} | ||
@@ -75,0 +79,0 @@ |
{ | ||
"name": "eyo-kernel", | ||
"description": "Restoring the letter «ё» (yo) in russian texts", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"author": { | ||
@@ -36,5 +36,5 @@ "name": "Denis Seleznev", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.15.0", | ||
"istanbul": "~0.4.5", | ||
"mocha": "^4.1.0" | ||
"eslint": "^4.19.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.2.0" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1131559
265