proto.io 0.0.189 → 0.0.190
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -905,7 +905,7 @@ class ProtoInternal {
|
|
|
905
905
|
throw Error('Upload token is required');
|
|
906
906
|
return {
|
|
907
907
|
nonce,
|
|
908
|
-
attributes: _.isObject(attributes) ? deserialize(JSON.stringify(attributes)) : {},
|
|
908
|
+
attributes: _.isObject(attributes) ? deserialize(JSON.stringify(attributes), { objAttrs: ['_id'] }) : {},
|
|
909
909
|
maxUploadSize: maxUploadSize ?? this.options.maxUploadSize,
|
|
910
910
|
};
|
|
911
911
|
}
|
|
@@ -1626,7 +1626,7 @@ class ProtoService extends ProtoType {
|
|
|
1626
1626
|
return this[PVK].jwtSign({
|
|
1627
1627
|
nonce: randomUUID(),
|
|
1628
1628
|
maxUploadSize: options.maxUploadSize,
|
|
1629
|
-
attributes: JSON.parse(serialize(options.attributes ?? {})),
|
|
1629
|
+
attributes: JSON.parse(serialize(options.attributes ?? {}, { objAttrs: ['_id'] })),
|
|
1630
1630
|
}, options?.jwtSignOptions ?? 'upload');
|
|
1631
1631
|
}
|
|
1632
1632
|
jwtSign(payload, options) {
|