@navservice/core 1.44.0 → 1.47.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.
@@ -1,3 +1,3 @@
1
- export { default as config_env_core } from "./config_env";
2
- export { default as TypesCore } from "./types";
3
- export { default as utils } from "./utils";
1
+ export * as config_env_core from "./config_env";
2
+ export * as TypesCore from "./types";
3
+ export * as utils from "./utils";
@@ -1,6 +1,43 @@
1
1
  import v4 from "zod/v4";
2
2
  import axios from "axios";
3
3
  import { useLayoutEffect, useState } from "react";
4
+ var __webpack_require__ = {};
5
+ (()=>{
6
+ __webpack_require__.d = (exports, definition)=>{
7
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
8
+ enumerable: true,
9
+ get: definition[key]
10
+ });
11
+ };
12
+ })();
13
+ (()=>{
14
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
15
+ })();
16
+ (()=>{
17
+ __webpack_require__.r = (exports)=>{
18
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
19
+ value: 'Module'
20
+ });
21
+ Object.defineProperty(exports, '__esModule', {
22
+ value: true
23
+ });
24
+ };
25
+ })();
26
+ var config_env_namespaceObject = {};
27
+ __webpack_require__.r(config_env_namespaceObject);
28
+ __webpack_require__.d(config_env_namespaceObject, {
29
+ default: ()=>src_config_env
30
+ });
31
+ var types_namespaceObject = {};
32
+ __webpack_require__.r(types_namespaceObject);
33
+ __webpack_require__.d(types_namespaceObject, {
34
+ default: ()=>types
35
+ });
36
+ var utils_namespaceObject = {};
37
+ __webpack_require__.r(utils_namespaceObject);
38
+ __webpack_require__.d(utils_namespaceObject, {
39
+ default: ()=>src_utils
40
+ });
4
41
  class config_env {
5
42
  static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
6
43
  static init(config) {
@@ -641,4 +678,4 @@ const utils = {
641
678
  hooks: utils_hooks
642
679
  };
643
680
  const src_utils = utils;
644
- export { types as TypesCore, src_config_env as config_env_core, src_utils as utils };
681
+ export { types_namespaceObject as TypesCore, config_env_namespaceObject as config_env_core, utils_namespaceObject as utils };
@@ -1 +1 @@
1
- export { default as helpers } from "./helpers";
1
+ export * as helpers from "./helpers";
@@ -2,6 +2,33 @@ import v4 from "zod/v4";
2
2
  import { SignJWT, jwtVerify } from "jose";
3
3
  import { randomBytes, scrypt, timingSafeEqual } from "node:crypto";
4
4
  import { promisify } from "node:util";
5
+ var __webpack_require__ = {};
6
+ (()=>{
7
+ __webpack_require__.d = (exports, definition)=>{
8
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
9
+ enumerable: true,
10
+ get: definition[key]
11
+ });
12
+ };
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
16
+ })();
17
+ (()=>{
18
+ __webpack_require__.r = (exports)=>{
19
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
20
+ value: 'Module'
21
+ });
22
+ Object.defineProperty(exports, '__esModule', {
23
+ value: true
24
+ });
25
+ };
26
+ })();
27
+ var helpers_namespaceObject = {};
28
+ __webpack_require__.r(helpers_namespaceObject);
29
+ __webpack_require__.d(helpers_namespaceObject, {
30
+ default: ()=>src_helpers
31
+ });
5
32
  const set_response = class {
6
33
  static c = class {
7
34
  static SUCCESS({ message, results, c }) {
@@ -371,4 +398,4 @@ const helpers = {
371
398
  data: helpers_data
372
399
  };
373
400
  const src_helpers = helpers;
374
- export { src_helpers as helpers };
401
+ export { helpers_namespaceObject as helpers };
@@ -8,8 +8,9 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
8
8
  ;
9
9
  var __webpack_modules__ = ({
10
10
  "./src/config_env/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11
+ __webpack_require__.r(__webpack_exports__);
11
12
  __webpack_require__.d(__webpack_exports__, {
12
- A: () => (__rspack_default_export)
13
+ "default": () => (__rspack_default_export)
13
14
  });
14
15
  class config_env {
15
16
  static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
@@ -25,6 +26,8 @@ class config_env {
25
26
 
26
27
  },
27
28
  "./src/utils/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
29
+ // ESM COMPAT FLAG
30
+ __webpack_require__.r(__webpack_exports__);
28
31
 
29
32
  // EXPORTS
30
33
  __webpack_require__.d(__webpack_exports__, {
@@ -44,7 +47,7 @@ const _api_api = class _api {
44
47
  static servidor_service_usuario = class servidor_service_usuario {
45
48
  static get #axios() {
46
49
  return external_axios_default().create({
47
- baseURL: config_env/* ["default"].PUBLIC_BASE_URL_BACKEND_PRINCIPAL */.A.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
50
+ baseURL: config_env["default"].PUBLIC_BASE_URL_BACKEND_PRINCIPAL
48
51
  });
49
52
  }
50
53
  static async post({ url, data, setToken = true }) {
@@ -737,10 +740,16 @@ __webpack_require__.r(__webpack_exports__);
737
740
 
738
741
  // EXPORTS
739
742
  __webpack_require__.d(__webpack_exports__, {
740
- config_env_core: () => (/* reexport */ config_env/* ["default"] */.A),
741
- TypesCore: () => (/* reexport */ types),
742
- utils: () => (/* reexport */ utils["default"])
743
+ config_env_core: () => (/* reexport */ config_env),
744
+ TypesCore: () => (/* reexport */ types_namespaceObject),
745
+ utils: () => (/* reexport */ utils)
743
746
  });
747
+ // NAMESPACE OBJECT: ./src/types/index.ts
748
+ var types_namespaceObject = {};
749
+ __webpack_require__.r(types_namespaceObject);
750
+ __webpack_require__.d(types_namespaceObject, {
751
+ "default": () => (types) });
752
+
744
753
 
745
754
  // EXTERNAL MODULE: ./src/config_env/index.ts
746
755
  var config_env = __webpack_require__("./src/config_env/index.ts");
@@ -1,3 +1,3 @@
1
- export { default as config_env_core } from "./config_env";
2
- export { default as TypesCore } from "./types";
3
- export { default as utils } from "./utils";
1
+ export * as config_env_core from "./config_env";
2
+ export * as TypesCore from "./types";
3
+ export * as utils from "./utils";
@@ -8,6 +8,8 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
8
8
  ;
9
9
  var __webpack_modules__ = ({
10
10
  "./src/helpers/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11
+ // ESM COMPAT FLAG
12
+ __webpack_require__.r(__webpack_exports__);
11
13
 
12
14
  // EXPORTS
13
15
  __webpack_require__.d(__webpack_exports__, {
@@ -494,7 +496,7 @@ var __webpack_exports__ = {};
494
496
  (() => {
495
497
  __webpack_require__.r(__webpack_exports__);
496
498
  __webpack_require__.d(__webpack_exports__, {
497
- helpers: () => (/* reexport safe */ _helpers__rspack_import_0["default"])
499
+ helpers: () => (/* reexport module object */ _helpers__rspack_import_0)
498
500
  });
499
501
  /* import */ var _helpers__rspack_import_0 = __webpack_require__("./src/helpers/index.ts");
500
502
 
@@ -1 +1 @@
1
- export { default as helpers } from "./helpers";
1
+ export * as helpers from "./helpers";
@@ -9,7 +9,7 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
9
9
  var __webpack_modules__ = ({
10
10
  "./src/config_env/index.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11
11
  __webpack_require__.d(__webpack_exports__, {
12
- A: () => (__rspack_default_export)
12
+ "default": () => (__rspack_default_export)
13
13
  });
14
14
  class config_env {
15
15
  static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
@@ -109,7 +109,7 @@ const _api_api = class _api {
109
109
  static servidor_service_usuario = class servidor_service_usuario {
110
110
  static get #axios() {
111
111
  return external_axios_default().create({
112
- baseURL: config_env/* ["default"].PUBLIC_BASE_URL_BACKEND_PRINCIPAL */.A.PUBLIC_BASE_URL_BACKEND_PRINCIPAL
112
+ baseURL: config_env["default"].PUBLIC_BASE_URL_BACKEND_PRINCIPAL
113
113
  });
114
114
  }
115
115
  static async post({ url, data, setToken = true }) {
package/package.json CHANGED
@@ -1,20 +1,16 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.44.0",
3
+ "version": "1.47.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {
7
- ".": {
8
- "browser": "./build/es/index.browser.js",
9
- "node": "./build/es/index.node.js",
10
- "import": "./build/es/index.browser.js",
11
- "types": "./build/es/index.browser.d.ts"
12
- },
13
7
  "./utils": {
14
8
  "import": "./build/es/utils.js",
9
+ "default": "./build/es/utils.js",
15
10
  "types": "./build/es/utils/index.d.ts"
16
11
  },
17
12
  "./helpers": {
13
+ "import": "./build/es/helpers.js",
18
14
  "default": "./build/es/helpers.js",
19
15
  "types": "./build/es/helpers/index.d.ts"
20
16
  }