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.js
CHANGED
|
@@ -908,7 +908,7 @@ class ProtoInternal {
|
|
|
908
908
|
throw Error('Upload token is required');
|
|
909
909
|
return {
|
|
910
910
|
nonce,
|
|
911
|
-
attributes: _.isObject(attributes) ? index.deserialize(JSON.stringify(attributes)) : {},
|
|
911
|
+
attributes: _.isObject(attributes) ? index.deserialize(JSON.stringify(attributes), { objAttrs: ['_id'] }) : {},
|
|
912
912
|
maxUploadSize: maxUploadSize ?? this.options.maxUploadSize,
|
|
913
913
|
};
|
|
914
914
|
}
|
|
@@ -1629,7 +1629,7 @@ class ProtoService extends index.ProtoType {
|
|
|
1629
1629
|
return this[_private.PVK].jwtSign({
|
|
1630
1630
|
nonce: cryptoJs.randomUUID(),
|
|
1631
1631
|
maxUploadSize: options.maxUploadSize,
|
|
1632
|
-
attributes: JSON.parse(index.serialize(options.attributes ?? {})),
|
|
1632
|
+
attributes: JSON.parse(index.serialize(options.attributes ?? {}, { objAttrs: ['_id'] })),
|
|
1633
1633
|
}, options?.jwtSignOptions ?? 'upload');
|
|
1634
1634
|
}
|
|
1635
1635
|
jwtSign(payload, options) {
|