@nuka9510/simple-validation 1.0.7 → 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.
@@ -0,0 +1 @@
1
+ /// <reference path="validation.d.ts" />
@@ -1,7 +1,4 @@
1
- export = validation;
2
- export as namespace validation;
3
-
4
- declare namespace validation {
1
+ declare module 'validation' {
5
2
  type InputElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
6
3
 
7
4
  /** 결과 값 객체 */
@@ -1,4 +1,5 @@
1
- import { config, result } from "../@types/validation";
1
+ /// <reference path="../@types/index.d.ts" />
2
+ import { config, result } from "validation";
2
3
  /**
3
4
  * Validation Check를 위한 객체
4
5
  */
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@nuka9510/simple-validation",
3
- "version": "1.0.7",
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.23"
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를 위한 객체
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
  }