@fibery/schema 10.2.15 → 10.2.16
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/jest.config.cjs +34 -0
- package/lib/jest.config.d.cts +3 -0
- package/lib/src/utils.d.ts +3 -3
- package/package.json +14 -54
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** @type {import('@jest/schemas').InitialOptions} */
|
|
3
|
+
const config = {
|
|
4
|
+
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
|
|
5
|
+
coveragePathIgnorePatterns: ["/node_modules/"],
|
|
6
|
+
coverageReporters: ["text", "cobertura"],
|
|
7
|
+
testEnvironment: "node",
|
|
8
|
+
testEnvironmentOptions: {
|
|
9
|
+
customExportConditions: ["@fibery/source"],
|
|
10
|
+
url: "http://localhost",
|
|
11
|
+
},
|
|
12
|
+
testPathIgnorePatterns: ["<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]"],
|
|
13
|
+
transform: {
|
|
14
|
+
"^.+\\.(js|jsx|ts|tsx)$": [
|
|
15
|
+
"@swc/jest",
|
|
16
|
+
{
|
|
17
|
+
jsc: {
|
|
18
|
+
parser: {
|
|
19
|
+
syntax: "typescript",
|
|
20
|
+
tsx: true,
|
|
21
|
+
decorators: true,
|
|
22
|
+
dynamicImport: true,
|
|
23
|
+
},
|
|
24
|
+
transform: {
|
|
25
|
+
react: {
|
|
26
|
+
runtime: "automatic",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
module.exports = config;
|
package/lib/src/utils.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { RawSchema } from "./schema";
|
|
|
2
2
|
import { TypeObject } from "./type-object";
|
|
3
3
|
export declare const withOnlyDefinedGets: (target: any, targetKind?: string) => any;
|
|
4
4
|
export declare const capitalizeFirstChar: (input: string) => string;
|
|
5
|
-
export declare const toTypeOrFieldNamePartTitle: (str: string) => string;
|
|
6
|
-
export declare const toTypeOrFieldTitle: (str: string) => string;
|
|
5
|
+
export declare const toTypeOrFieldNamePartTitle: (str: string | null | undefined) => string;
|
|
6
|
+
export declare const toTypeOrFieldTitle: (str: string | null | undefined) => string;
|
|
7
7
|
export declare const toPascalCase: (lispCasedString?: string) => string;
|
|
8
8
|
export declare const toNonEnumTitle: (strName: string) => string;
|
|
9
9
|
export declare const parseEnumType: (type: string) => {
|
|
@@ -13,7 +13,7 @@ export declare const parseEnumType: (type: string) => {
|
|
|
13
13
|
targetNamespace: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const toTitle: (typeOrAttr: string) => string;
|
|
16
|
-
export declare const parseType: ((type:
|
|
16
|
+
export declare const parseType: ((type: string) => {
|
|
17
17
|
namespace: string;
|
|
18
18
|
name: string;
|
|
19
19
|
}) & import("lodash").MemoizedFunction;
|
package/package.json
CHANGED
|
@@ -1,87 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/schema",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.16",
|
|
4
|
+
"private": false,
|
|
4
5
|
"description": "Fibery schema utils",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"./lib"
|
|
8
8
|
],
|
|
9
|
+
"main": "./lib/index.js",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
12
|
"types": "./lib/index.d.ts",
|
|
13
|
+
"@fibery/source": "./index.ts",
|
|
12
14
|
"default": "./lib/index.js"
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
|
-
"fiberyDevExports": {
|
|
16
|
-
".": "./index.ts"
|
|
17
|
-
},
|
|
18
|
-
"private": false,
|
|
19
17
|
"dependencies": {
|
|
20
18
|
"lodash": "4.17.21",
|
|
21
19
|
"memoize-one": "6.0.0",
|
|
22
|
-
"@fibery/
|
|
23
|
-
"@fibery/
|
|
20
|
+
"@fibery/pluralize": "1.1.2",
|
|
21
|
+
"@fibery/helpers": "2.0.1"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"@babel/core": "7.28.5",
|
|
27
25
|
"@swc/jest": "0.2.39",
|
|
26
|
+
"@types/jest": "30.0.0",
|
|
28
27
|
"@types/lodash": "4.14.172",
|
|
28
|
+
"@typescript/native-preview": "7.0.0-dev.20260401.1",
|
|
29
29
|
"babel-loader": "10.0.0",
|
|
30
30
|
"jest": "30.2.0",
|
|
31
31
|
"jest-junit": "16.0.0",
|
|
32
|
-
"typescript": "
|
|
32
|
+
"typescript": "6.0.1-rc",
|
|
33
33
|
"webpack": "5.87.0",
|
|
34
34
|
"webpack-cli": "6.0.1",
|
|
35
|
-
"@fibery/babel-preset": "7.4.2"
|
|
36
|
-
"@fibery/eslint-config": "9.0.1"
|
|
37
|
-
},
|
|
38
|
-
"jest": {
|
|
39
|
-
"testEnvironment": "node",
|
|
40
|
-
"coveragePathIgnorePatterns": [
|
|
41
|
-
"/node_modules/"
|
|
42
|
-
],
|
|
43
|
-
"collectCoverageFrom": [
|
|
44
|
-
"src/**/*.{js,jsx,ts,tsx}",
|
|
45
|
-
"!src/**/*.d.ts"
|
|
46
|
-
],
|
|
47
|
-
"coverageReporters": [
|
|
48
|
-
"text",
|
|
49
|
-
"cobertura"
|
|
50
|
-
],
|
|
51
|
-
"testPathIgnorePatterns": [
|
|
52
|
-
"<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]"
|
|
53
|
-
],
|
|
54
|
-
"transform": {
|
|
55
|
-
"^.+\\.(js|jsx|ts|tsx)$": [
|
|
56
|
-
"@swc/jest",
|
|
57
|
-
{
|
|
58
|
-
"jsc": {
|
|
59
|
-
"parser": {
|
|
60
|
-
"syntax": "typescript",
|
|
61
|
-
"tsx": true,
|
|
62
|
-
"decorators": true,
|
|
63
|
-
"dynamicImport": true
|
|
64
|
-
},
|
|
65
|
-
"transform": {
|
|
66
|
-
"react": {
|
|
67
|
-
"runtime": "automatic"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"testEnvironmentOptions": {
|
|
75
|
-
"url": "http://localhost"
|
|
76
|
-
}
|
|
35
|
+
"@fibery/babel-preset": "7.4.2"
|
|
77
36
|
},
|
|
78
37
|
"scripts": {
|
|
79
|
-
"build": "rm -rf lib &&
|
|
38
|
+
"build": "rm -rf lib && tsc --project tsconfig.build.json",
|
|
80
39
|
"test": "jest",
|
|
81
40
|
"test:ci": "pnpm run test --reporters=default --reporters=jest-junit",
|
|
82
41
|
"test:coverage": "pnpm run test --coverage --coverageDirectory=${JEST_COVERAGE_RESULT_DIR:-$(pwd)}/coverage/schema --reporters=default --reporters=jest-junit",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
42
|
+
"check": "../../scripts/check.sh",
|
|
43
|
+
"lint": "../../scripts/lint.sh",
|
|
44
|
+
"typecheck": "../../scripts/typecheck.sh"
|
|
85
45
|
},
|
|
86
46
|
"types": "./lib/index.d.ts"
|
|
87
47
|
}
|