@rytass/bpm-core-nestjs-module 0.13.2 → 0.13.3
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,3 +1,14 @@
|
|
|
1
|
+
## 0.13.3 (2026-09-04)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **attachment:** validate the signing secret at bootstrap, not at import ([d07f996](https://github.com/Rytass/BPMCore/commit/d07f996))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Chia Yu Pai @fantasywind
|
|
10
|
+
- Claude Opus 5
|
|
11
|
+
|
|
1
12
|
## 0.13.2 (2026-09-04)
|
|
2
13
|
|
|
3
14
|
### 🩹 Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rytass/bpm-core-nestjs-module",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "Embeddable NestJS BPM approval workflow module: workflow engine, approval templates, forms, organization/member contracts, attachments, signatures, notifications, delegation, and TypeORM migrations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bpm",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@nestjs/core": ">=10.0.0",
|
|
156
156
|
"@nestjs/graphql": ">=12.0.0",
|
|
157
157
|
"@nestjs/typeorm": ">=10.0.0",
|
|
158
|
-
"@rytass/bpm-core-shared": "^0.13.
|
|
158
|
+
"@rytass/bpm-core-shared": "^0.13.3",
|
|
159
159
|
"@rytass/secret-adapter-vault-nestjs": ">=0.4.5",
|
|
160
160
|
"express": ">=4.0.0",
|
|
161
161
|
"graphql": ">=16.0.0",
|
|
@@ -94,10 +94,25 @@ exports.AttachmentModule = AttachmentModule = AttachmentModule_1 = tslib_1.__dec
|
|
|
94
94
|
exports: ATTACHMENT_MODULE_EXPORTS,
|
|
95
95
|
})
|
|
96
96
|
], AttachmentModule);
|
|
97
|
+
/**
|
|
98
|
+
* Resolves the attachment options lazily.
|
|
99
|
+
*
|
|
100
|
+
* A `useValue` here would run `resolveBPMAttachmentOptions` while the `@Module`
|
|
101
|
+
* decorator argument above is being evaluated — that is, when this file is
|
|
102
|
+
* *imported*. The production secret check would then fire at `require()` time,
|
|
103
|
+
* before any host could pass a secret through `forRoot` / `forRootAsync`, and
|
|
104
|
+
* even for a host that never mounts attachments at all. That is exactly what
|
|
105
|
+
* made 0.13.2 impossible to load under `NODE_ENV=production`.
|
|
106
|
+
*
|
|
107
|
+
* As a factory the check happens when Nest instantiates the provider, i.e. at
|
|
108
|
+
* application bootstrap — still fail-fast, but after the host has had its say.
|
|
109
|
+
* When `forRoot` / `forRootAsync` registers the same token, this provider is
|
|
110
|
+
* replaced and never instantiated.
|
|
111
|
+
*/
|
|
97
112
|
function createAttachmentOptionsProvider(options = {}) {
|
|
98
113
|
return {
|
|
99
114
|
provide: attachment_options_1.BPM_ATTACHMENT_OPTIONS,
|
|
100
|
-
|
|
115
|
+
useFactory: () => (0, attachment_options_1.resolveBPMAttachmentOptions)(options),
|
|
101
116
|
};
|
|
102
117
|
}
|
|
103
118
|
//# sourceMappingURL=attachment.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment.module.js","sourceRoot":"","sources":["../../../../../../libs/bpm-core/src/lib/attachment/attachment.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAMwB;AACxB,wDAAyD;AAEzD,6CAAgD;AAChD,0FAAqF;AACrF,oFAA+E;AAC/E,kFAA6E;AAC7E,gEAA4D;AAC5D,mEAA+D;AAC/D,2DAAuD;AACvD,iEAA6D;AAC7D,6DAAyD;AACzD,+EAA0E;AAE1E,6DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"attachment.module.js","sourceRoot":"","sources":["../../../../../../libs/bpm-core/src/lib/attachment/attachment.module.ts"],"names":[],"mapp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