@smartlyio/oats-runtime 6.0.0-alpha.12 → 6.0.0
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/make.d.ts +6 -6
- package/package.json +7 -7
- package/jest.config.js +0 -38
package/dist/make.d.ts
CHANGED
|
@@ -61,13 +61,13 @@ export declare function makeOptional(maker: any): {
|
|
|
61
61
|
};
|
|
62
62
|
export declare function makeBoolean(): Maker<unknown, boolean>;
|
|
63
63
|
export declare function makeArray(maker: any, minSize?: number, maxSize?: number): Maker<unknown, unknown[]>;
|
|
64
|
-
export declare function makeOneOf(...options: any[]): (value: any, opts?: MakeOptions) => any;
|
|
65
|
-
export declare function makeAllOf(...all: Maker<any, any>[]): (value: any, opts?: MakeOptions) => Make<any>;
|
|
64
|
+
export declare function makeOneOf(...options: any[]): (value: any, opts?: MakeOptions | undefined) => any;
|
|
65
|
+
export declare function makeAllOf(...all: Maker<any, any>[]): (value: any, opts?: MakeOptions | undefined) => Make<any>;
|
|
66
66
|
export declare function makeObject<P extends {
|
|
67
67
|
[key: string]: Maker<any, any> | {
|
|
68
68
|
optional: Maker<any, any>;
|
|
69
69
|
};
|
|
70
|
-
}>(props: P, additionalProp?: any, comparisorOrder?: string[], type?: ObjectType): (value: any, opts?: MakeOptions) => Make<any>;
|
|
70
|
+
}>(props: P, additionalProp?: any, comparisorOrder?: string[], type?: ObjectType): (value: any, opts?: MakeOptions | undefined) => Make<any>;
|
|
71
71
|
export declare type Binary = File | Buffer | FormBinary;
|
|
72
72
|
export declare class FormBinary {
|
|
73
73
|
readonly binary: Binary;
|
|
@@ -87,9 +87,9 @@ export declare class File {
|
|
|
87
87
|
}
|
|
88
88
|
declare function checkBinary(value: any): Make<any>;
|
|
89
89
|
export declare function makeBinary(): typeof checkBinary;
|
|
90
|
-
export declare function makeNullable(maker: any): (value: any, opts?: MakeOptions) => any;
|
|
90
|
+
export declare function makeNullable(maker: any): (value: any, opts?: MakeOptions | undefined) => any;
|
|
91
91
|
export declare function fromReflection(type: Type): Maker<any, any>;
|
|
92
|
-
export declare function createMaker<Shape, Type>(fun: () => any): (value: Shape, opts?: MakeOptions) => Make<Type>;
|
|
92
|
+
export declare function createMaker<Shape, Type>(fun: () => any): (value: Shape, opts?: MakeOptions | undefined) => Make<Type>;
|
|
93
93
|
export declare function createMakerWith<Shape, Type>(constructor: new (v: Shape, opts?: MakeOptions) => Type): Maker<Shape, Type>;
|
|
94
94
|
/**
|
|
95
95
|
* Merge multiple mappings into one set of mappings
|
|
@@ -121,5 +121,5 @@ export declare function extractDiscriminatorValueMap(discriminatorField: string,
|
|
|
121
121
|
*/
|
|
122
122
|
export declare function makeOneOfWithDiscriminator(discriminatorField: string, mapping: {
|
|
123
123
|
[key: string]: Maker<any, any>;
|
|
124
|
-
}, importedTypes?: readonly any[]): (value: any, opts?: MakeOptions) => Make<any>;
|
|
124
|
+
}, importedTypes?: readonly any[]): (value: any, opts?: MakeOptions | undefined) => Make<any>;
|
|
125
125
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyio/oats-runtime",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Runtime for Oats a Openapi3 based generator for typescript aware servers and clients",
|
|
6
6
|
"private": false,
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"client"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/jest": "27.
|
|
43
|
-
"@types/lodash": "4.14.
|
|
44
|
-
"@types/node": "16.11.
|
|
42
|
+
"@types/jest": "27.5.2",
|
|
43
|
+
"@types/lodash": "4.14.185",
|
|
44
|
+
"@types/node": "16.11.60",
|
|
45
45
|
"fast-check": "2.25.0",
|
|
46
46
|
"jest": "27.5.1",
|
|
47
47
|
"jsverify": "0.8.4",
|
|
48
|
-
"prettier": "2.
|
|
48
|
+
"prettier": "2.7.1",
|
|
49
49
|
"ts-jest": "27.1.5",
|
|
50
|
-
"ts-node": "10.
|
|
50
|
+
"ts-node": "10.9.1",
|
|
51
51
|
"tsconfig-paths": "3.14.1",
|
|
52
52
|
"typescript": "4.8.3"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "14f229556f4867cae3d415689d88d8bffa30d256"
|
|
55
55
|
}
|
package/jest.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
moduleFileExtensions: ['js', 'ts', 'tsx'],
|
|
3
|
-
moduleNameMapper: {
|
|
4
|
-
"@smartlyio/oats$": "<rootDir>/packages/oats/index.ts",
|
|
5
|
-
"@smartlyio/oats-runtime$": "<rootDir>/packages/oats-runtime/src/runtime.ts",
|
|
6
|
-
"@smartlyio/oats-axios-adapter$": "<rootDir>/packages/oats-axios-adapter/index.ts",
|
|
7
|
-
"@smartlyio/oats-koa-adapter$": "<rootDir>/packages/oats-koa-adapter/index.ts",
|
|
8
|
-
"@smartlyio/oats-fast-check$": "<rootDir>/packages/oats-fast-check/src/index.ts"
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
testRegex: '.*\\.spec.(tsx?)$',
|
|
12
|
-
|
|
13
|
-
collectCoverageFrom: [
|
|
14
|
-
'packages/*/src/**/*.{ts,tsxx}',
|
|
15
|
-
'!packages/*/src/**/*.story.*'
|
|
16
|
-
],
|
|
17
|
-
|
|
18
|
-
coverageThreshold: {
|
|
19
|
-
global: {
|
|
20
|
-
branches: 20,
|
|
21
|
-
statements: 20,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
modulePathIgnorePatterns: ['<rootDir>/packages/*/dist'],
|
|
26
|
-
|
|
27
|
-
transform: {
|
|
28
|
-
'^.+\\.(ts|js)x?$': 'ts-jest',
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
globals: {
|
|
32
|
-
'ts-jest': {
|
|
33
|
-
isolatedModules: true,
|
|
34
|
-
diagnostics: true,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
setupFilesAfterEnv: [],
|
|
38
|
-
};
|