@fraym/crud 0.34.0 → 0.34.2
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/client/auth.d.ts
CHANGED
package/dist/client/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"getProtobufAuthData",{enumerable:true,get:function(){return getProtobufAuthData}});var getProtobufAuthData=function(auth){var data={};for(var key in auth.data){data[key]=JSON.stringify(auth.data[key])}return{tenantId:auth.tenantId,scopes:auth.scopes,data:data}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"getProtobufAuthData",{enumerable:true,get:function(){return getProtobufAuthData}});var getProtobufAuthData=function(auth){var data={};for(var key in auth.data){data[key]=JSON.stringify(auth.data[key])}var _auth_userId;return{tenantId:auth.tenantId,userId:(_auth_userId=auth.userId)!==null&&_auth_userId!==void 0?_auth_userId:"",scopes:auth.scopes,data:data}};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DeploymentTarget } from "@fraym/proto/dist/index.freym.crud.delivery";
|
|
1
|
+
import { EventMetadata as CrudEventMetadata, DeploymentTarget } from "@fraym/proto/dist/index.freym.crud.delivery";
|
|
2
2
|
export interface EventMetadata {
|
|
3
3
|
correlationId: string;
|
|
4
4
|
causationId: string;
|
|
5
|
-
userId: string;
|
|
6
5
|
target: DeploymentTarget;
|
|
7
6
|
}
|
|
8
|
-
export declare const fillMetadataWithDefaults: (metadata: Partial<EventMetadata> | null) =>
|
|
7
|
+
export declare const fillMetadataWithDefaults: (metadata: Partial<EventMetadata> | null) => CrudEventMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"fillMetadataWithDefaults",{enumerable:true,get:function(){return fillMetadataWithDefaults}});var fillMetadataWithDefaults=function(metadata){if(!metadata){return{causationId:"",correlationId:"",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"fillMetadataWithDefaults",{enumerable:true,get:function(){return fillMetadataWithDefaults}});var fillMetadataWithDefaults=function(metadata){if(!metadata){return{causationId:"",correlationId:"",target:"DEPLOYMENT_TARGET_BLUE"}}return{causationId:metadata.causationId||"",correlationId:metadata.correlationId||"",target:metadata.target||"DEPLOYMENT_TARGET_BLUE"}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraym/crud",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/fraym/freym-api",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"types": "dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fraym/proto": "^0.34.
|
|
25
|
+
"@fraym/proto": "^0.34.2",
|
|
26
26
|
"@grpc/grpc-js": "^1.13.3",
|
|
27
27
|
"dotenv": "^16.5.0"
|
|
28
28
|
},
|