Files
Daniel Salazar 99d96edd9c feat: s3 fs in oss (#2761)
* feat: s3 fs in oss

* feat: new endpoints in OSS

* fix: name of fs extension

* perf: signed uploads

* fix: await socket events to align fs events

* fix: default bucket names

* fix: backend tests

* fix: deps

* fix: order
2026-04-02 11:20:59 -07:00

17 lines
569 B
JavaScript

/**
* Instead of `myObject.hasOwnProperty(k)`, always write:
* `safeHasOwnProperty(myObject, k)`.
*
* This is a less verbose way to call `Object.prototype.hasOwnProperty.call`.
* This prevents unexpected behavior when `hasOwnProperty` is overridden,
* which is especially possible for objects parsed from user-sent JSON.
*
* explanation: https://eslint.org/docs/latest/rules/no-prototype-builtins
* @param {*} o
* @param {...any} a
* @returns
*/
export const safeHasOwnProperty = (o, ...a) => {
return Object.prototype.hasOwnProperty.call(o, ...a);
};