ilib-localematcher 1.0.0 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilib-localematcher",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "main": "./lib/LocaleMatcher.js",
5
5
  "module": "./src/LocaleMatcher.js",
6
6
  "description": "A locale matcher to resolve partial locales or find fallback locales. iLib is a cross-engine library of internationalization (i18n) classes written in pure JS",
@@ -40,6 +40,7 @@
40
40
  "src",
41
41
  "lib",
42
42
  "docs",
43
+ "locale",
43
44
  "README.md",
44
45
  "LICENSE"
45
46
  ],
@@ -53,49 +54,54 @@
53
54
  "build:dev": "grunt babel --mode=dev",
54
55
  "build:web": "webpack-cli",
55
56
  "build:test": "webpack-cli --config webpack-test.config.js",
56
- "generate": "node generate.js",
57
- "dist": "npm run doc ; npm run build:prod ; npm run build:web; npm pack",
58
- "test": "LANG=en_US.UTF8 npm run build:dev ; node test/testSuite.js",
59
- "testall": "LANG=en_US.UTF8 npm run test; npm run build:test ; open-cli ./test/testSuite.html ; open-cli ./test/testSuite.html -- firefox",
60
- "debug": "npm run build:dev ; node --inspect-brk test/testSuite.js",
57
+ "build:data": "node scripts/genlikelyloc.js",
58
+ "dist": "npm-run-all build:data doc doc:html build:prod build:web; npm pack",
59
+ "test": "npm run test:cli",
60
+ "test:cli": "npm run build:dev ; node test/testSuite.js",
61
+ "test:web": "npm run build:test ; open-cli ./test/testSuite.html ; open-cli ./test/testSuite.html -- firefox",
62
+ "test:all": "LANG=en_US.UTF8 npm-run-all build:data test:cli test:web",
63
+ "debug": "LANG=en_US.UTF8 npm run build:data ; npm run build:dev ; node --inspect-brk test/testSuite.js",
61
64
  "clean": "git clean -f -d *",
62
- "doc": "jsdoc -c jsdoc.json"
65
+ "doc": "mkdir -p docs ; jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibLocaleMatcher.md",
66
+ "doc:html": "jsdoc -c jsdoc.json"
63
67
  },
64
68
  "devDependencies": {
65
- "@babel/core": "^7.9.0",
66
- "@babel/plugin-transform-runtime": "^7.13.15",
67
- "@babel/preset-env": "^7.9.5",
68
- "@babel/register": "^7.13.16",
69
- "acorn": "^6.4.1",
70
- "acorn-jsx": "^5.2.0",
69
+ "@babel/core": "^7.18.6",
70
+ "@babel/plugin-transform-runtime": "^7.18.6",
71
+ "@babel/preset-env": "^7.18.6",
72
+ "@babel/register": "^7.18.6",
73
+ "acorn": "^8.7.1",
74
+ "acorn-jsx": "^5.3.2",
71
75
  "assertextras": "^1.1.0",
72
- "babel-loader": "^8.2.2",
76
+ "babel-loader": "^8.2.5",
73
77
  "babel-plugin-add-module-exports": "^1.0.4",
74
78
  "babel-plugin-uglify": "^1.0.2",
75
79
  "buffer": "^6.0.3",
76
- "cldr-core": "^38.1.0",
77
- "cldr-misc-full": "^38.1.0",
78
- "cldr-numbers-full": "^38.1.0",
79
- "core-js": "^3.12.0",
80
+ "cldr-core": "^41.0.0",
81
+ "cldr-misc-full": "^41.0.0",
82
+ "cldr-numbers-full": "^41.0.0",
83
+ "core-js": "^3.23.3",
80
84
  "docdash": "^1.2.0",
81
- "grunt": "^1.1.0",
85
+ "grunt": "^1.5.3",
82
86
  "grunt-babel": "^8.0.0",
83
- "grunt-cli": "^1.3.2",
84
- "grunt-contrib-clean": "^2.0.0",
85
- "grunt-contrib-jshint": "^2.1.0",
86
- "grunt-contrib-nodeunit": "^2.1.0",
87
- "grunt-contrib-uglify": "^4.0.1",
88
- "jsdoc": "^3.6.6",
87
+ "grunt-cli": "^1.4.3",
88
+ "grunt-contrib-clean": "^2.0.1",
89
+ "grunt-contrib-jshint": "^3.2.0",
90
+ "grunt-contrib-nodeunit": "^4.0.0",
91
+ "grunt-contrib-uglify": "^5.2.2",
92
+ "jsdoc": "^3.6.10",
93
+ "jsdoc-to-markdown": "^7.1.1",
89
94
  "load-grunt-tasks": "^5.1.0",
90
95
  "nodeunit": "^0.11.3",
91
- "open-cli": "^6.0.1",
96
+ "npm-run-all": "^4.1.5",
97
+ "open-cli": "^7.0.1",
92
98
  "uglifyjs-webpack-plugin": "^2.2.0",
93
- "webpack": "^5.31.0",
94
- "webpack-cli": "^4.6.0"
99
+ "webpack": "^5.73.0",
100
+ "webpack-cli": "^4.10.0"
95
101
  },
96
102
  "dependencies": {
97
- "ilib-common": "^1.0.0",
98
- "ilib-env": "^1.0.0",
99
- "ilib-locale": "^1.0.0"
103
+ "ilib-common": "^1.1.0",
104
+ "ilib-env": "^1.3.0",
105
+ "ilib-locale": "^1.2.0"
100
106
  }
101
107
  }