@agrotools1/at-mf-utils 0.0.3 → 0.0.6

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.
@@ -7,5 +7,5 @@ declare type IResponse = {
7
7
  * @param url URL do módulo
8
8
  * @param containerTag Tag do container onde o módulo será montado
9
9
  */
10
- export declare function getModule(moduleId: string, url: string): Promise<IResponse>;
10
+ export default function getModule(moduleId: string, url: string): Promise<IResponse>;
11
11
  export {};
@@ -1 +1 @@
1
- export async function getModule(t,s){return await __webpack_init_sharing__?.("default"),new Promise(a=>{const e=document.createElement("script");e.type="text/javascript",e.src=s,e.defer=!0,e.async=!0,document.head.appendChild(e),e.onload=async()=>{const n=window[t],o=typeof __webpack_share_scopes__<"u"?__webpack_share_scopes__:null;await n?.init(o?.default);const i=(await(await n.get?.(t))().default)?.default;a(i)}})}
1
+ export default async function r(t,a){return await __webpack_init_sharing__?.("default"),new Promise(s=>{const e=document.createElement("script");e.type="text/javascript",e.src=a,e.defer=!0,e.async=!0,document.head.appendChild(e),e.onload=async()=>{const n=window[t],o=typeof __webpack_share_scopes__<"u"?__webpack_share_scopes__:null;await n?.init(o?.default);const i=(await(await n.get?.(t))().default)?.default;s(i)}})}
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './build';
1
+ import getModule from './build';
2
+ export { getModule };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export*from"./build";
1
+ import o from"./build";export{o as getModule};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agrotools1/at-mf-utils",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.6",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@9.1.0",
7
7
  "description": "Métodos utilitários de MF da Agrotools",
@@ -1 +0,0 @@
1
- export * from "./validators";
package/dist/car/index.js DELETED
@@ -1 +0,0 @@
1
- export*from"./validators";
@@ -1 +0,0 @@
1
- export declare function validateCAR(document: string): boolean;
@@ -1 +0,0 @@
1
- export function validateCAR(t){const s=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"];let e="";if(t.length>=40)e=t[0]+t[1];else return!1;return s.includes(e)?/^([A-Z]{2})-\d{7}-([\dA-Z]{4}\.?){8}$/.test(t):!1}
@@ -1 +0,0 @@
1
- export * from "./validators";
@@ -1 +0,0 @@
1
- export declare function validateCAR(document: string): boolean;
@@ -1 +0,0 @@
1
- export * from './car';