@agrotools1/at-mf-utils 0.0.1 → 0.0.4

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, containerTag: string): Promise<IResponse>;
10
+ export declare function getModule(moduleId: string, url: string): Promise<IResponse>;
11
11
  export {};
@@ -1 +1 @@
1
- export async function getModule(e,a,o){return await __webpack_init_sharing__?.("default"),new Promise(i=>{const t=document.createElement("script");t.type="text/javascript",t.src=a,t.defer=!0,t.async=!0,document.head.appendChild(t),t.onload=async()=>{const n=window[e],r=typeof __webpack_share_scopes__<"u"?__webpack_share_scopes__:null;await n?.init(r?.default);const s=await(await n.get?.(e))().default;(s?.default).mount(o),i(s?.default)}})}
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)}})}
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './build/index';
1
+ export * from './build';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export*from"./build/index";
1
+ export*from"./build";
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.1",
4
+ "version": "0.0.4",
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';