@bitblit/ratchet-misc 6.1.185-alpha → 6.1.192-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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ratchet-misc",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.192-alpha",
|
|
4
4
|
"description": "Ratchet miscellaneous tooling that requires smallish dependant libraries",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -46,26 +46,20 @@
|
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=14.18"
|
|
48
48
|
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"cleanup-brevo-open-api-files": "yarn shx rm -Rf src/brevo/generated",
|
|
51
|
-
"regenerate-brevo-open-api-files": "yarn cleanup-brevo-open-api-files && yarn openapi-generator-cli generate -i brevo-open-api-spec-2024-02-14.yaml -g typescript-fetch -o ./src/brevo/generated --additional-properties=supportsES6=true,withInterfaces=true,stringEnums=true,importFileExtension=.js && rm src/brevo/generated/apis/index.ts && rm src/brevo/generated/index.ts",
|
|
52
|
-
"cleanup-sobol-open-api-files": "yarn shx rm -Rf src/sobol/generated",
|
|
53
|
-
"regenerate-sobol-open-api-files": "yarn cleanup-sobol-open-api-files && yarn openapi-generator-cli generate -i sobol_io_v1_2024_04_10_fixed.json -g typescript-fetch -o ./src/sobol/generated --global-property=apis --global-property=models --global-property=supportingFiles --additional-properties=supportsES6=true,enumPropertyNaming=original,withInterfaces=true,stringEnums=true,importFileExtension=.js,modelPropertyNaming=original"
|
|
54
|
-
},
|
|
55
49
|
"license": "Apache-2.0",
|
|
56
50
|
"dependencies": {
|
|
57
|
-
"@bitblit/ratchet-common": "6.1.
|
|
51
|
+
"@bitblit/ratchet-common": "6.1.192-alpha"
|
|
58
52
|
},
|
|
59
53
|
"optionalDependencies": {
|
|
60
|
-
"handlebars": "4.7.
|
|
54
|
+
"handlebars": "4.7.9",
|
|
61
55
|
"handlebars-layouts": "3.1.4",
|
|
62
56
|
"js-yaml": "4.1.1",
|
|
63
57
|
"rxjs": "7.8.2",
|
|
64
58
|
"swagger-model-validator": "3.0.21"
|
|
65
59
|
},
|
|
66
60
|
"peerDependencies": {
|
|
67
|
-
"@bitblit/ratchet-common": "6.1.
|
|
68
|
-
"handlebars": "^4.7.
|
|
61
|
+
"@bitblit/ratchet-common": "6.1.192-alpha",
|
|
62
|
+
"handlebars": "^4.7.9",
|
|
69
63
|
"handlebars-layouts": "^3.1.4",
|
|
70
64
|
"js-yaml": "^4.1.1",
|
|
71
65
|
"rxjs": "^7.8.2",
|
|
@@ -89,8 +83,18 @@
|
|
|
89
83
|
}
|
|
90
84
|
},
|
|
91
85
|
"devDependencies": {
|
|
92
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
86
|
+
"@openapitools/openapi-generator-cli": "2.30.0",
|
|
93
87
|
"openapi3-ts": "4.5.0",
|
|
94
88
|
"shx": "0.4.0"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"cleanup-brevo-open-api-files": "pnpm shx rm -Rf src/brevo/generated",
|
|
92
|
+
"regenerate-brevo-open-api-files": "pnpm cleanup-brevo-open-api-files && pnpm openapi-generator-cli generate -i brevo-open-api-spec-2024-02-14.yaml -g typescript-fetch -o ./src/brevo/generated --additional-properties=supportsES6=true,withInterfaces=true,stringEnums=true,importFileExtension=.js && rm src/brevo/generated/apis/index.ts && rm src/brevo/generated/index.ts",
|
|
93
|
+
"cleanup-sobol-open-api-files": "pnpm shx rm -Rf src/sobol/generated",
|
|
94
|
+
"regenerate-sobol-open-api-files": "pnpm cleanup-sobol-open-api-files && pnpm openapi-generator-cli generate -i sobol_io_v1_2024_04_10_fixed.json -g typescript-fetch -o ./src/sobol/generated --global-property=apis --global-property=models --global-property=supportingFiles --additional-properties=supportsES6=true,enumPropertyNaming=original,withInterfaces=true,stringEnums=true,importFileExtension=.js,modelPropertyNaming=original",
|
|
95
|
+
"build": "tsc",
|
|
96
|
+
"test": "vitest run",
|
|
97
|
+
"test-coverage": "vitest run --coverage",
|
|
98
|
+
"custom-publish": "pnpm publish --access public --provenance --tag $GITHUB_REF_NAME --no-git-checks"
|
|
95
99
|
}
|
|
96
100
|
}
|
|
@@ -114,4 +114,15 @@ describe('#handlebarsService', () => {
|
|
|
114
114
|
const out3: string = handlebars.compile('{{rpn 1 "div"}}')({});
|
|
115
115
|
expect(out3).toEqual('Cannot execute operation div - not enough args');
|
|
116
116
|
});
|
|
117
|
+
|
|
118
|
+
test('should handle single level embed', async () => {
|
|
119
|
+
const out1: string = handlebars.compile('{{a}} {{b}}')({a:'HELLO', b:'WORLD'});
|
|
120
|
+
expect(out1).toEqual('HELLO WORLD');
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
test('should handle multi level embed', async () => {
|
|
124
|
+
const out1: string = handlebars.compile('{{x.a}} {{x.b}}')({x:{a:'HELLO', b:'WORLD'},y:{c:'test',d:'fail'}});
|
|
125
|
+
expect(out1).toEqual('HELLO WORLD');
|
|
126
|
+
});
|
|
127
|
+
|
|
117
128
|
});
|