bayda-maghreb 1.1.9 → 1.1.11

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/README.md CHANGED
@@ -4,7 +4,7 @@ North African dialect transliteration library - Kabyle, Libya, Tunisia, Algeria,
4
4
 
5
5
  ## v1.0 - 7 dialects green ✅
6
6
 
7
- | Code | Name | File | Words |
7
+ | Code | Name | File | Entries |
8
8
  |------|------|------|-------|
9
9
  | kab | Kabyle | kabyle.json | 68 |
10
10
  | kab-lat | Kabyle Latin | kabyle-latin.json | 103 |
@@ -8,7 +8,7 @@ function _load(file){
8
8
  if(_cache.has(key)) return _cache.get(key);
9
9
  const data=JSON.parse(fs.readFileSync(file,'utf8'));
10
10
  const map=new Map();
11
- const CORE=new Set('if else while for break continue function return true false null let const switch import export class new try catch finally throw await async'.split(' '));
11
+ const CORE=new Set('if else while do var this for break continue function return true false null let const switch import export class new try catch finally throw await async'.split(' '));
12
12
  const LIB=new Set('Array String Number Object Boolean filter map reduce find push pop console.log sort replace split join stringify promise error call apply bind global module process prompt length'.split(' '));
13
13
  const ALIAS={print:'console.log',log:'console.log'};
14
14
  if(data.keywords) for(const [w,c] of Object.entries(data.keywords)){
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "bayda-maghreb",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Bayda Maghreb - 7 dialects clean + Gen 2 Tech",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "bayda": "./cli.js",
8
- "bayda-maghreb": "./cli.js"
7
+ "bayda": "./bayda-transpile.cjs",
8
+ "bayda-maghreb": "./bayda-transpile.cjs"
9
9
  },
10
10
  "scripts": {
11
11
  "test": "vitest run",
12
12
  "test:watch": "vitest",
13
- "audit": "node audit.cjs"
13
+ "audit": "node audit.cjs",
14
+ "prepublishOnly": "npm test"
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",