@driveflux/admin-utils 4.0.80 → 4.0.81

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/resource.js +4 -4
  2. package/package.json +9 -9
package/dist/resource.js CHANGED
@@ -16,11 +16,11 @@ var RESOURCE_LINKS_MAP = {
16
16
  SubscriptionContract: '/contracts',
17
17
  EmailSent: '/system-emails'
18
18
  };
19
- export var isLinkableToAdmin = function(model) {
19
+ export var isLinkableToAdmin = function isLinkableToAdmin(model) {
20
20
  return model in RESOURCE_LINKS_MAP;
21
21
  };
22
- export var adminResourceLink = function(model, id, options) {
23
- var _options_baseUrl;
24
- var baseUrl = (_options_baseUrl = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _options_baseUrl !== void 0 ? _options_baseUrl : "".concat(config.appUrl, "/admin");
22
+ export var adminResourceLink = function adminResourceLink(model, id, options) {
23
+ var _ref;
24
+ var baseUrl = (_ref = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _ref !== void 0 ? _ref : "".concat(config.appUrl, "/admin");
25
25
  return "".concat(baseUrl).concat(RESOURCE_LINKS_MAP[model], "/").concat(id);
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/admin-utils",
3
- "version": "4.0.80",
3
+ "version": "4.0.81",
4
4
  "description": "Utilites for admin meant to be shared with other packages. Do not import this module in the user facing site. It's strictly for admin and api or backend services",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,18 +13,18 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@driveflux/config": "3.0.10",
16
+ "@driveflux/config": "3.0.11",
17
17
  "@driveflux/db": "4.1.19"
18
18
  },
19
19
  "devDependencies": {
20
- "@driveflux/fab": "4.0.0",
21
- "@driveflux/tsconfig": "3.0.0",
22
- "@swc/cli": "^0.7.8",
23
- "@swc/core": "^1.13.5",
24
- "@types/lodash": "^4.17.20",
25
- "@types/node": "^24.9.1",
20
+ "@driveflux/fab": "4.0.1",
21
+ "@driveflux/tsconfig": "3.0.1",
22
+ "@swc/cli": "^0.8.1",
23
+ "@swc/core": "^1.15.33",
24
+ "@types/lodash": "^4.17.24",
25
+ "@types/node": "^25.7.0",
26
26
  "del-cli": "^7.0.0",
27
- "typescript": "^5.9.3"
27
+ "typescript": "^6.0.3"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "fab",