@esm-test/guards 1.0.0-beta.3 → 1.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,11 @@
1
- # 1.0.0-beta.2
2
-
3
- - Fixed package repo link
4
-
5
- # 1.0.0-beta.1
6
-
1
+ # 1.0.0-beta.3
2
+
3
+ - moved package to @esm-test npm org
4
+
5
+ # 1.0.0-beta.2
6
+
7
+ - Fixed package repo link
8
+
9
+ # 1.0.0-beta.1
10
+
7
11
  - init commit extracted from [esm-test-parser](https://gitlab.com/esm-test-group/esm-test-parser)
package/README.md CHANGED
@@ -6,3 +6,9 @@
6
6
  [![NPM downloads](https://img.shields.io/npm/dm/esm-test-guards.svg)](https://npmjs.org/package/esm-test-guards "View this project on NPM")
7
7
 
8
8
  [![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/peterf)
9
+
10
+ A js utility library for guarding objects, instances and types
11
+
12
+ ```sh
13
+ npm install @esm-test/guards
14
+ ```
package/index.d.ts CHANGED
@@ -1,23 +1,23 @@
1
- declare module 'esm-test-guards' {
2
-
3
- export function notComplexObjectMessage(guardName: string): string;
4
- export function throwNotComplexObject(guardName: string, guard: object): void;
5
-
6
- export function notInstanceMessage(guardName: string, guardType: Object): string;
7
- export function throwNotInstance(guardName: string, guard: object, guardType: Object): void;
8
- export function notAnyInstanceMessage(guardInstance: object, ...guardTypes: Object[]): string;
9
- export function throwNotAnyInstance(guardInstance: object, ...guardTypes: Object[]): void;
10
-
11
- export function nullMessage(guardName: string): string;
12
- export function throwNull(guardName: string, guard: object): void;
13
-
14
- export function notObjectKeyMessage(guardName: string, guard: object): string;
15
- export function throwNotObjectKey(guardName: string, guard: object, guardObjectKey: string): void;
16
-
17
- export function notTypeMessage(guardName: string, guardType: string): string;
18
- export function throwNotType(guardName: string, guard: object, guardType: string): void;
19
-
20
- export function undefinedMessage(guardName: string): string;
21
- export function throwUndefined(guardName: string, guard: object): void;
22
-
1
+ declare module '@esm-test/guards' {
2
+
3
+ export function notComplexObjectMessage(guardName: string): string;
4
+ export function throwNotComplexObject(guardName: string, guard: object): void;
5
+
6
+ export function notInstanceMessage(guardName: string, guardType: Object): string;
7
+ export function throwNotInstance(guardName: string, guard: object, guardType: Object): void;
8
+ export function notAnyInstanceMessage(guardInstance: object, ...guardTypes: Object[]): string;
9
+ export function throwNotAnyInstance(guardInstance: object, ...guardTypes: Object[]): void;
10
+
11
+ export function nullMessage(guardName: string): string;
12
+ export function throwNull(guardName: string, guard: object): void;
13
+
14
+ export function notObjectKeyMessage(guardName: string, guard: object): string;
15
+ export function throwNotObjectKey(guardName: string, guard: object, guardObjectKey: string): void;
16
+
17
+ export function notTypeMessage(guardName: string, guardType: string): string;
18
+ export function throwNotType(guardName: string, guard: object, guardType: string): void;
19
+
20
+ export function undefinedMessage(guardName: string): string;
21
+ export function throwUndefined(guardName: string, guard: object): void;
22
+
23
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esm-test/guards",
3
- "version": "1.0.0-beta.3",
4
- "description": "A js library for guards objects, instances and types",
3
+ "version": "1.0.0-beta.4",
4
+ "description": "A js utility library for guarding objects, instances and types",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },