@mostajs/rbac 2.4.0 → 2.4.1

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.
Files changed (2) hide show
  1. package/dist/lib/i18n.js +2 -2
  2. package/package.json +2 -2
package/dist/lib/i18n.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @mostajs/rbac — i18n helper
2
2
  // Author: Dr Hamid MADANI drmdh@msn.com
3
- import users from '../i18n/fr/users.json.js';
4
- import roles from '../i18n/fr/roles.json.js';
3
+ import users from '../i18n/fr/users.json';
4
+ import roles from '../i18n/fr/roles.json';
5
5
  const translations = { users, roles };
6
6
  function getNestedValue(obj, path) {
7
7
  const keys = path.split('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mostajs/rbac",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "RBAC — User/Role/Permission schemas, repos, management UI, API handlers",
5
5
  "author": "Dr Hamid MADANI <drmdh@msn.com>",
6
6
  "license": "AGPL-3.0-or-later",
@@ -189,7 +189,7 @@
189
189
  },
190
190
  "scripts": {
191
191
  "build": "tsc && npm run fix-esm",
192
- "fix-esm": "find dist -name '*.js' -exec sed -i -E \"s|from '(\\\\.{1,2}/[^']+)'(;?)|from '\\\\1.js'\\\\2|g; s|from \\\"(\\\\.{1,2}/[^\\\"]+)\\\"(;?)|from \\\"\\\\1.js\\\"\\\\2|g\" {} \\; && find dist -name '*.js' -exec sed -i -E \"s|\\\\.js\\\\.js|.js|g\" {} \\;",
192
+ "fix-esm": "find dist -name '*.js' -exec sed -i -E \"s|from '(\\\\.{1,2}/[^']+)'(;?)|from '\\\\1.js'\\\\2|g; s|from \\\"(\\\\.{1,2}/[^\\\"]+)\\\"(;?)|from \\\"\\\\1.js\\\"\\\\2|g\" {} \\; && find dist -name '*.js' -exec sed -i -E \"s|\\\\.js\\\\.js|.js|g; s|\\\\.json\\\\.js|.json|g; s|\\\\.css\\\\.js|.css|g\" {} \\;",
193
193
  "prepublishOnly": "npm run build"
194
194
  },
195
195
  "dependencies": {