@agrotools1/at-mf-utils 0.0.1-alpha.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.
- package/dist/@types/index.d.js +1 -0
- package/dist/build/index.d.ts +11 -0
- package/dist/build/index.js +1 -0
- package/dist/car/index.d.ts +1 -0
- package/dist/car/index.js +1 -0
- package/dist/car/validators.d.ts +1 -0
- package/dist/car/validators.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/src/car/index.d.ts +1 -0
- package/dist/src/car/validators.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type IResponse = {
|
|
2
|
+
mount: (tag: string) => void;
|
|
3
|
+
unmount: () => void;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @param moduleId Valor da propriedade `name` do `package.json` do módulo
|
|
7
|
+
* @param url URL do módulo
|
|
8
|
+
* @param containerTag Tag do container onde o módulo será montado
|
|
9
|
+
*/
|
|
10
|
+
export declare function getModule(moduleId: string, url: string, containerTag: string): Promise<IResponse>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +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)}})}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./validators";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./validators";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateCAR(document: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './build/index';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./build/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./validators";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateCAR(document: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './car';
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agrotools1/at-mf-utils",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.1-alpha.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"packageManager": "pnpm@9.1.0",
|
|
7
|
+
"description": "Métodos utilitários de MF da Agrotools",
|
|
8
|
+
"author": "Agrotools",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"utils",
|
|
12
|
+
"mf",
|
|
13
|
+
"agrotools"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"typings": "./dist/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"esbuild": "0.24.0",
|
|
24
|
+
"glob": "11.0.0",
|
|
25
|
+
"typescript": "4.2.4",
|
|
26
|
+
"webpack": "^5.93.0"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "pnpm run build-only",
|
|
33
|
+
"build-only": "node ./scripts/build.js && tsc --emitDeclarationOnly",
|
|
34
|
+
"format": "prettier --write src/",
|
|
35
|
+
"pub:release": "pnpm publish --access public"
|
|
36
|
+
}
|
|
37
|
+
}
|