@nuka9510/simple-validation 1.0.6 → 1.0.8
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/@types/index.d.ts +1 -0
- package/@types/validation.d.ts +1 -4
- package/dist/validation.d.ts +7 -3
- package/dist/validation.js +5 -2
- package/package.json +5 -3
- package/src/validation.ts +7 -3
- package/tsconfig.json +1 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference path="validation.d.ts" />
|
package/@types/validation.d.ts
CHANGED
package/dist/validation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference path="../@types/index.d.ts" />
|
|
2
|
+
import { config, result } from "validation";
|
|
2
3
|
/**
|
|
3
4
|
* Validation Check를 위한 객체
|
|
4
5
|
*/
|
|
@@ -20,11 +21,14 @@ export default class Validation {
|
|
|
20
21
|
* </form>
|
|
21
22
|
* <script type="importmap">
|
|
22
23
|
* {
|
|
23
|
-
* "imports": {
|
|
24
|
+
* "imports": {
|
|
25
|
+
* "@nuka9510/js-util": "https://cdn.jsdelivr.net/npm/@nuka9510/js-util/dist/index.js",
|
|
26
|
+
* "@nuka9510/simple-validation": "https://cdn.jsdelivr.net/npm/@nuka9510/simple-validation/dist/index.js"
|
|
27
|
+
* }
|
|
24
28
|
* }
|
|
25
29
|
* </script>
|
|
26
30
|
* <script type="module">
|
|
27
|
-
* import SValidation from "@nuka9510/simple-validation";
|
|
31
|
+
* import { SValidation } from "@nuka9510/simple-validation";
|
|
28
32
|
*
|
|
29
33
|
* const validation = new SValidation({regex: {password: /^[\S!?@#$%^&*():;+-=~{}<>\_\[\]\|\\\"\'\,\.\/\`]{6,10}$/}});
|
|
30
34
|
*
|
package/dist/validation.js
CHANGED
|
@@ -25,11 +25,14 @@ export default class Validation {
|
|
|
25
25
|
* </form>
|
|
26
26
|
* <script type="importmap">
|
|
27
27
|
* {
|
|
28
|
-
* "imports": {
|
|
28
|
+
* "imports": {
|
|
29
|
+
* "@nuka9510/js-util": "https://cdn.jsdelivr.net/npm/@nuka9510/js-util/dist/index.js",
|
|
30
|
+
* "@nuka9510/simple-validation": "https://cdn.jsdelivr.net/npm/@nuka9510/simple-validation/dist/index.js"
|
|
31
|
+
* }
|
|
29
32
|
* }
|
|
30
33
|
* </script>
|
|
31
34
|
* <script type="module">
|
|
32
|
-
* import SValidation from "@nuka9510/simple-validation";
|
|
35
|
+
* import { SValidation } from "@nuka9510/simple-validation";
|
|
33
36
|
*
|
|
34
37
|
* const validation = new SValidation({regex: {password: /^[\S!?@#$%^&*():;+-=~{}<>\_\[\]\|\\\"\'\,\.\/\`]{6,10}$/}});
|
|
35
38
|
*
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuka9510/simple-validation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "simple validation util for web front-end",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"directories": {
|
|
7
7
|
"example": "example"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"build": "rm -r -f dist && tsc",
|
|
12
|
+
"postversion": "git push && git push --tag && npm publish --access=public"
|
|
11
13
|
},
|
|
12
14
|
"repository": {
|
|
13
15
|
"type": "git",
|
|
@@ -27,6 +29,6 @@
|
|
|
27
29
|
},
|
|
28
30
|
"homepage": "https://github.com/nuka9510/simple-validation",
|
|
29
31
|
"dependencies": {
|
|
30
|
-
"@nuka9510/js-util": "^1.0.
|
|
32
|
+
"@nuka9510/js-util": "^1.0.24"
|
|
31
33
|
}
|
|
32
34
|
}
|
package/src/validation.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference path="../@types/index.d.ts" />
|
|
2
|
+
import { config, el, InputElement, radio, regex, result } from "validation";
|
|
1
3
|
import { JUtil } from "@nuka9510/js-util";
|
|
2
|
-
import { config, el, InputElement, radio, regex, result } from "../@types/validation";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Validation Check를 위한 객체
|
|
@@ -31,11 +32,14 @@ export default class Validation {
|
|
|
31
32
|
* </form>
|
|
32
33
|
* <script type="importmap">
|
|
33
34
|
* {
|
|
34
|
-
* "imports": {
|
|
35
|
+
* "imports": {
|
|
36
|
+
* "@nuka9510/js-util": "https://cdn.jsdelivr.net/npm/@nuka9510/js-util/dist/index.js",
|
|
37
|
+
* "@nuka9510/simple-validation": "https://cdn.jsdelivr.net/npm/@nuka9510/simple-validation/dist/index.js"
|
|
38
|
+
* }
|
|
35
39
|
* }
|
|
36
40
|
* </script>
|
|
37
41
|
* <script type="module">
|
|
38
|
-
* import SValidation from "@nuka9510/simple-validation";
|
|
42
|
+
* import { SValidation } from "@nuka9510/simple-validation";
|
|
39
43
|
*
|
|
40
44
|
* const validation = new SValidation({regex: {password: /^[\S!?@#$%^&*():;+-=~{}<>\_\[\]\|\\\"\'\,\.\/\`]{6,10}$/}});
|
|
41
45
|
*
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"typeRoots": ["@types"],
|
|
4
3
|
"checkJs": true,
|
|
5
4
|
"strictNullChecks": false,
|
|
6
5
|
"noPropertyAccessFromIndexSignature": true,
|
|
@@ -12,7 +11,5 @@
|
|
|
12
11
|
"declaration": true,
|
|
13
12
|
"outDir": "dist"
|
|
14
13
|
},
|
|
15
|
-
"include": [
|
|
16
|
-
"src/index.ts"
|
|
17
|
-
]
|
|
14
|
+
"include": [ "src/index.ts" ]
|
|
18
15
|
}
|