proto.io 0.0.149 → 0.0.150

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.mjs CHANGED
@@ -143,7 +143,7 @@ const dispatcher = (proto, options, disableSecurity) => {
143
143
  includes: _includes,
144
144
  matches: _matches,
145
145
  objectIdSize: proto[PVK].options.objectIdSize
146
- }, _attrs), { lockTable: options.className });
146
+ }, _attrs), { lockTable: options.className, retry: true });
147
147
  }
148
148
  catch (e) {
149
149
  if (proto.storage.isDuplicateIdError(e))
@@ -167,7 +167,7 @@ const dispatcher = (proto, options, disableSecurity) => {
167
167
  includes: _includes,
168
168
  matches: _matches,
169
169
  objectIdSize: proto[PVK].options.objectIdSize
170
- }, _attrs), { lockTable: options.className });
170
+ }, _attrs), { lockTable: options.className, retry: true });
171
171
  }
172
172
  catch (e) {
173
173
  if (proto.storage.isDuplicateIdError(e))
@@ -193,7 +193,7 @@ const dispatcher = (proto, options, disableSecurity) => {
193
193
  const _setOnInsert = normalize(_validator.validateFields(query.className, setOnInsert, 'create', QueryValidator.patterns.name));
194
194
  while (true) {
195
195
  try {
196
- return await proto.storage.atomic((storage) => storage.upsertOne(_query, _update, _setOnInsert));
196
+ return await proto.storage.atomic((storage) => storage.upsertOne(_query, _update, _setOnInsert), { lockTable: query.className, retry: true });
197
197
  }
198
198
  catch (e) {
199
199
  if (proto.storage.isDuplicateIdError(e))