hebrew-transliteration 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -649,7 +649,7 @@ declare module 'hebrew-transliteration/transliterate' {
649
649
  * ```
650
650
  *
651
651
  */
652
- export const transliterate: (text: string | Text, schema?: Schema | Partial<Schema> | undefined) => string;
652
+ export const transliterate: (text: string | Text, schema?: Partial<Schema> | Schema) => string;
653
653
 
654
654
  }
655
655
  declare module 'hebrew-transliteration' {
package/dist/index.esm.js CHANGED
@@ -250,6 +250,8 @@ var wordRules = (word, schema) => {
250
250
  return schema.DIVINE_NAME;
251
251
  if (word.hasDivineName)
252
252
  return `${sylRules(word.syllables[0], schema)}-${schema.DIVINE_NAME}`;
253
+ if (word.isNotHebrew)
254
+ return word.text;
253
255
  if ((_a = schema.ADDITIONAL_FEATURES) == null ? void 0 : _a.length) {
254
256
  const wordSeqs = schema.ADDITIONAL_FEATURES.filter((s) => s.FEATURE === "word");
255
257
  for (const seq of wordSeqs) {
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -277,6 +278,8 @@ var wordRules = (word, schema) => {
277
278
  return schema.DIVINE_NAME;
278
279
  if (word.hasDivineName)
279
280
  return `${sylRules(word.syllables[0], schema)}-${schema.DIVINE_NAME}`;
281
+ if (word.isNotHebrew)
282
+ return word.text;
280
283
  if ((_a = schema.ADDITIONAL_FEATURES) == null ? void 0 : _a.length) {
281
284
  const wordSeqs = schema.ADDITIONAL_FEATURES.filter((s) => s.FEATURE === "word");
282
285
  for (const seq of wordSeqs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hebrew-transliteration",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "a package for transliterating Hebrew",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,22 +37,22 @@
37
37
  "author": "Charles Loder",
38
38
  "license": "MIT",
39
39
  "devDependencies": {
40
- "@types/jest": "^27.4.1",
41
- "@typescript-eslint/eslint-plugin": "^5.19.0",
42
- "esbuild": "^0.14.34",
43
- "eslint": "^8.13.0",
40
+ "@types/jest": "^28.1.4",
41
+ "@typescript-eslint/eslint-plugin": "^5.30.4",
42
+ "esbuild": "^0.14.48",
43
+ "eslint": "^8.19.0",
44
44
  "eslint-config-prettier": "^8.5.0",
45
- "eslint-plugin-jest": "^26.1.4",
46
- "eslint-plugin-jsdoc": "^39.1.0",
45
+ "eslint-plugin-jest": "^26.5.3",
46
+ "eslint-plugin-jsdoc": "^39.3.3",
47
47
  "eslint-plugin-prefer-arrow": "^1.2.3",
48
- "jest": "^27.5.1",
49
- "npm-check-updates": "^12.5.8",
50
- "npm-dts": "^1.3.11",
51
- "prettier": "^2.6.2",
52
- "ts-jest": "^27.1.4",
53
- "typescript": "^4.6.3"
48
+ "jest": "^28.1.2",
49
+ "npm-check-updates": "^15.0.2",
50
+ "npm-dts": "^1.3.12",
51
+ "prettier": "^2.7.1",
52
+ "ts-jest": "^28.0.5",
53
+ "typescript": "^4.7.4"
54
54
  },
55
55
  "dependencies": {
56
- "havarotjs": "^0.7.4"
56
+ "havarotjs": "^0.8.0"
57
57
  }
58
58
  }