@bitblit/ratchet-misc 4.0.1-alpha
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/lib/build/ratchet-misc-info.d.ts +5 -0
- package/lib/handlebars/handlebars-ratchet.d.ts +22 -0
- package/lib/handlebars/handlebars-ratchet.spec.d.ts +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.mjs +5 -0
- package/lib/index.mjs.map +1 -0
- package/lib/model-validator/model-validator.d.ts +10 -0
- package/lib/model-validator/model-validator.spec.d.ts +1 -0
- package/lib/rxjs/observable-ratchet.d.ts +6 -0
- package/lib/rxjs/observable-ratchet.spec.d.ts +1 -0
- package/lib/rxjs/rxjs-ratchet.d.ts +6 -0
- package/lib/rxjs/rxjs-ratchet.spec.d.ts +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ModelValidator {
|
|
2
|
+
private allModels;
|
|
3
|
+
constructor(allModels: any);
|
|
4
|
+
static createFromYamlString(yamlString: string, rootPath: string[]): ModelValidator;
|
|
5
|
+
static createFromParsedObject(parsedObject: any): ModelValidator;
|
|
6
|
+
get modelNames(): string[];
|
|
7
|
+
addModel(modelName: string, model: any): void;
|
|
8
|
+
fetchModel(modelName: string): any;
|
|
9
|
+
validate(modelName: string, modelObject: any, emptyAllowed?: boolean, extraPropertiesAllowed?: boolean): string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TimeoutToken } from '@bitblit/ratchet-common';
|
|
3
|
+
export declare class ObservableRatchet {
|
|
4
|
+
static timeout<T>(srcObservable: Observable<T | TimeoutToken>, title: string, timeoutMillis: number): Observable<T | TimeoutToken>;
|
|
5
|
+
static createTimeoutObservable<T>(title: string, timeoutMillis: number): Observable<T | TimeoutToken>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
export declare class RxjsRatchet {
|
|
3
|
+
static safeUnsubscribe(sub: any): boolean;
|
|
4
|
+
static waitForNonNullOnSubject<T>(subject: BehaviorSubject<T>): Promise<T>;
|
|
5
|
+
static waitForTargetValueOnSubject<T>(subject: BehaviorSubject<T>, targetValue: T): Promise<T>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bitblit/ratchet-misc",
|
|
3
|
+
"version": "4.0.1-alpha",
|
|
4
|
+
"description": "Ratchet miscellaneous tooling that requires smallish dependant libraries",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/*",
|
|
9
|
+
"bin/*"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./lib/index.d.ts",
|
|
14
|
+
"import": "./lib/index.mjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"contributors": [
|
|
18
|
+
"Christopher Weiss <bitblit@gmail.com>",
|
|
19
|
+
"William Weiss <npm@codification.org>",
|
|
20
|
+
"Austin Grantham <agrantham@algidious.com>",
|
|
21
|
+
"Lucas Myers <veganbeef@protonmail.com>",
|
|
22
|
+
"Joel Flint <joel@stimulimedia.net>",
|
|
23
|
+
"Bilal Shahid <bshahid@adomni.com>"
|
|
24
|
+
],
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "pretty-quick --staged"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"prettier": {
|
|
31
|
+
"printWidth": 140,
|
|
32
|
+
"singleQuote": true,
|
|
33
|
+
"arrowParens": "always"
|
|
34
|
+
},
|
|
35
|
+
"config": {},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"watch": "tsc-watch",
|
|
38
|
+
"clean": "shx rm -Rf lib",
|
|
39
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
|
|
40
|
+
"docs": "typedoc",
|
|
41
|
+
"lint": "eslint src/**/*.ts",
|
|
42
|
+
"lint-fix": "eslint --fix src/**/*.ts",
|
|
43
|
+
"generate-barrels": "barrelsby -q --delete -d src -e .*\\.spec\\.ts && sed -i 's/\\x27;/.js\\x27;/' src/index.ts",
|
|
44
|
+
"build": "yarn clean && yarn generate-barrels && rollup -c rollup.config.js",
|
|
45
|
+
"force-build": "tsc --build --force"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "https://github.com/bitblit/Ratchet"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"wrench",
|
|
53
|
+
"utility"
|
|
54
|
+
],
|
|
55
|
+
"bugs": {
|
|
56
|
+
"url": "https://github.com/bitblit/Ratchet/issues"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/bitblit/Ratchet#readme",
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=14.18"
|
|
61
|
+
},
|
|
62
|
+
"license": "Apache-2.0",
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"handlebars": "4.7.7",
|
|
65
|
+
"handlebars-layouts": "3.1.4",
|
|
66
|
+
"js-yaml": "4.1.0",
|
|
67
|
+
"rxjs": "7.8.1",
|
|
68
|
+
"swagger-model-validator": "3.0.21"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
},
|
|
72
|
+
"resolutions": {},
|
|
73
|
+
"devDependencies": {}
|
|
74
|
+
}
|