@agrotools1/at-utils 0.0.1 → 0.0.11
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/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/car/index.js +1 -0
- package/dist/index.js/car/validators.js +1 -0
- package/dist/index.js/index.js +1 -0
- package/package.json +2 -2
|
@@ -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 './car';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./validators";
|
|
@@ -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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./car";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agrotools1/at-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@9.1.0",
|
|
7
7
|
"description": "Métodos utilitários da Agrotools",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "pnpm run build-only",
|
|
31
|
-
"build-only": "node ./scripts/build.js",
|
|
31
|
+
"build-only": "node ./scripts/build.js && tsc --emitDeclarationOnly",
|
|
32
32
|
"format": "prettier --write src/",
|
|
33
33
|
"pub:release": "pnpm publish --access public"
|
|
34
34
|
}
|