@lowdefy/helpers 4.0.0-rc.11 → 4.0.0-rc.12

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.
@@ -59,7 +59,7 @@ function stableStringify(obj, opts) {
59
59
  return function stringify(parent, key, node, level) {
60
60
  const indent = space ? `\n${new Array(level + 1).join(space)}` : '';
61
61
  const colonSeparator = space ? ': ' : ':';
62
- if (node && node.toJSON && typeof node.toJSON === 'function') {
62
+ if (node?.toJSON && typeof node.toJSON === 'function') {
63
63
  node = node.toJSON();
64
64
  }
65
65
  node = replacer.call(parent, key, node);
@@ -81,7 +81,7 @@ function stableStringify(obj, opts) {
81
81
  if (cycles) return JSON.stringify('__cycle__');
82
82
  throw new TypeError('Converting circular structure to JSON');
83
83
  } else seen.push(node);
84
- const keys = Object.keys(node).sort(cmp && cmp(node));
84
+ const keys = Object.keys(node).sort(cmp?.(node));
85
85
  const out = [];
86
86
  for(let i = 0; i < keys.length; i++){
87
87
  const ky = keys[i];
package/dist/wait.js CHANGED
@@ -12,7 +12,7 @@
12
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
- */ async function wait(ms) {
15
+ */ function wait(ms) {
16
16
  return new Promise((resolve)=>setTimeout(resolve, ms));
17
17
  }
18
18
  export default wait;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/helpers",
3
- "version": "4.0.0-rc.11",
3
+ "version": "4.0.0-rc.12",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "dbc49d3688a6d2f44de25cc3f4bc071627f7ebfa"
54
+ "gitHead": "7f3059b6778b1cb8900b1d4456681b977521d45d"
55
55
  }