From b17194ce382850c7892b1f8d494a00cc82dd6185 Mon Sep 17 00:00:00 2001 From: Switt Kongdachalert Date: Mon, 30 Oct 2023 13:11:13 +0700 Subject: [PATCH] default exports, and partial reordering to alleviate require cycles, but still have major issue with ParseObject and its require cycles --- package-lock.json | 850 +++++++++--------- src/AnonymousUtils.ts | 1 + src/CoreManager.ts | 2 +- src/FacebookUtils.ts | 2 +- src/IndexedDBStorageController.ts | 1 + src/LiveQueryClient.ts | 4 +- src/LiveQuerySubscription.ts | 2 +- src/Parse.ts | 13 +- src/ParseACL.ts | 2 +- src/ParseCLP.ts | 2 +- src/ParseConfig.ts | 2 +- src/ParseError.ts | 1 + src/ParseFile.ts | 3 +- src/ParseGeoPoint.ts | 1 + src/ParseInstallation.ts | 2 +- src/ParseLiveQuery.ts | 1 + src/ParseObject.ts | 63 +- src/ParsePolygon.ts | 2 +- src/ParseQuery.ts | 1 + src/ParseRelation.ts | 4 +- src/ParseRole.ts | 4 +- src/ParseSchema.ts | 2 +- src/ParseSession.ts | 2 +- src/ParseUser.ts | 2 +- src/__tests__/AnonymousUtils-test.js | 2 +- src/__tests__/EventuallyQueue-test.js | 2 +- src/__tests__/FacebookUtils-test.js | 2 +- src/__tests__/LiveQueryClient-test.js | 6 +- src/__tests__/LocalDatastore-test.js | 4 +- src/__tests__/OfflineQuery-test.js | 12 +- src/__tests__/ParseACL-test.js | 4 +- src/__tests__/ParseCLP-test.js | 4 +- src/__tests__/ParseConfig-test.js | 4 +- src/__tests__/ParseError-test.js | 2 +- src/__tests__/ParseFile-test.js | 6 +- src/__tests__/ParseGeoPoint-test.js | 2 +- src/__tests__/ParseInstallation-test.js | 2 +- src/__tests__/ParseLiveQuery-test.js | 6 +- src/__tests__/ParseObject-test.js | 14 +- src/__tests__/ParsePolygon-test.js | 4 +- src/__tests__/ParseQuery-test.js | 32 +- src/__tests__/ParseRelation-test.js | 2 +- src/__tests__/ParseRole-test.js | 10 +- src/__tests__/ParseSchema-test.js | 2 +- src/__tests__/ParseSession-test.js | 4 +- src/__tests__/ParseUser-test.js | 8 +- .../SingleInstanceStateController-test.js | 4 +- .../UniqueInstanceStateController-test.js | 4 +- src/__tests__/arrayContainsObject-test.js | 2 +- src/__tests__/browser-test.js | 2 +- src/__tests__/canBeSerialized-test.js | 4 +- src/__tests__/decode-test.js | 10 +- src/__tests__/encode-test.js | 10 +- src/__tests__/equals-test.js | 10 +- src/__tests__/escape-test.js | 2 +- src/__tests__/parseDate-test.js | 2 +- src/__tests__/unique-test.js | 2 +- src/__tests__/unsavedChildren-test.js | 6 +- src/arrayContainsObject.ts | 1 + src/canBeSerialized.ts | 1 + src/decode.ts | 1 + src/encode.ts | 3 +- src/equals.ts | 1 + src/escape.ts | 1 + src/isRevocableSession.ts | 1 + src/parseDate.ts | 1 + src/promiseUtils.ts | 5 +- src/unique.ts | 1 + src/unsavedChildren.ts | 2 +- 69 files changed, 617 insertions(+), 562 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f9d644c5..a6ed79d56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19327,29 +19327,28 @@ }, "node_modules/npm/node_modules/@colors/colors": { "version": "1.5.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.1.90" } }, "node_modules/npm/node_modules/@gar/promisify": { "version": "1.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/@isaacs/string-locale-compare": { "version": "1.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/arborist": { "version": "5.6.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19399,7 +19398,7 @@ }, "node_modules/npm/node_modules/@npmcli/ci-detect": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -19408,7 +19407,7 @@ }, "node_modules/npm/node_modules/@npmcli/config": { "version": "4.2.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19427,7 +19426,7 @@ }, "node_modules/npm/node_modules/@npmcli/disparity-colors": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19439,7 +19438,7 @@ }, "node_modules/npm/node_modules/@npmcli/fs": { "version": "2.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19452,7 +19451,7 @@ }, "node_modules/npm/node_modules/@npmcli/git": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19472,7 +19471,7 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents": { "version": "1.0.7", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19488,7 +19487,7 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents/node_modules/npm-bundled": { "version": "1.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19497,7 +19496,7 @@ }, "node_modules/npm/node_modules/@npmcli/map-workspaces": { "version": "2.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19512,7 +19511,7 @@ }, "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { "version": "3.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19527,7 +19526,7 @@ }, "node_modules/npm/node_modules/@npmcli/move-file": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19540,13 +19539,13 @@ }, "node_modules/npm/node_modules/@npmcli/name-from-folder": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/node-gyp": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -19555,7 +19554,7 @@ }, "node_modules/npm/node_modules/@npmcli/package-json": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19567,7 +19566,7 @@ }, "node_modules/npm/node_modules/@npmcli/promise-spawn": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19579,7 +19578,7 @@ }, "node_modules/npm/node_modules/@npmcli/query": { "version": "1.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19593,7 +19592,7 @@ }, "node_modules/npm/node_modules/@npmcli/run-script": { "version": "4.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19609,7 +19608,7 @@ }, "node_modules/npm/node_modules/@tootallnate/once": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -19618,13 +19617,13 @@ }, "node_modules/npm/node_modules/abbrev": { "version": "1.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/agent-base": { "version": "6.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19636,7 +19635,7 @@ }, "node_modules/npm/node_modules/agentkeepalive": { "version": "4.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19650,7 +19649,7 @@ }, "node_modules/npm/node_modules/aggregate-error": { "version": "3.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19663,7 +19662,7 @@ }, "node_modules/npm/node_modules/ansi-regex": { "version": "5.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -19672,7 +19671,7 @@ }, "node_modules/npm/node_modules/ansi-styles": { "version": "4.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19687,19 +19686,19 @@ }, "node_modules/npm/node_modules/aproba": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/are-we-there-yet": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19712,19 +19711,19 @@ }, "node_modules/npm/node_modules/asap": { "version": "2.0.6", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/bin-links": { "version": "3.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19741,7 +19740,7 @@ }, "node_modules/npm/node_modules/bin-links/node_modules/npm-normalize-package-bin": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -19750,7 +19749,7 @@ }, "node_modules/npm/node_modules/binary-extensions": { "version": "2.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -19759,7 +19758,7 @@ }, "node_modules/npm/node_modules/brace-expansion": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19768,7 +19767,7 @@ }, "node_modules/npm/node_modules/builtins": { "version": "5.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19777,7 +19776,7 @@ }, "node_modules/npm/node_modules/cacache": { "version": "16.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19806,7 +19805,7 @@ }, "node_modules/npm/node_modules/chalk": { "version": "4.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19822,7 +19821,7 @@ }, "node_modules/npm/node_modules/chownr": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -19831,7 +19830,7 @@ }, "node_modules/npm/node_modules/cidr-regex": { "version": "3.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -19843,7 +19842,7 @@ }, "node_modules/npm/node_modules/clean-stack": { "version": "2.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -19852,7 +19851,7 @@ }, "node_modules/npm/node_modules/cli-columns": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19865,7 +19864,7 @@ }, "node_modules/npm/node_modules/cli-table3": { "version": "0.6.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19880,7 +19879,7 @@ }, "node_modules/npm/node_modules/clone": { "version": "1.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -19889,7 +19888,7 @@ }, "node_modules/npm/node_modules/cmd-shim": { "version": "5.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -19901,7 +19900,7 @@ }, "node_modules/npm/node_modules/color-convert": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19913,13 +19912,13 @@ }, "node_modules/npm/node_modules/color-name": { "version": "1.1.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/color-support": { "version": "1.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "bin": { @@ -19928,7 +19927,7 @@ }, "node_modules/npm/node_modules/columnify": { "version": "1.6.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19941,25 +19940,25 @@ }, "node_modules/npm/node_modules/common-ancestor-path": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/concat-map": { "version": "0.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/console-control-strings": { "version": "1.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/cssesc": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "bin": { @@ -19971,7 +19970,7 @@ }, "node_modules/npm/node_modules/debug": { "version": "4.3.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -19988,13 +19987,13 @@ }, "node_modules/npm/node_modules/debug/node_modules/ms": { "version": "2.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/debuglog": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20003,7 +20002,7 @@ }, "node_modules/npm/node_modules/defaults": { "version": "1.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20012,13 +20011,13 @@ }, "node_modules/npm/node_modules/delegates": { "version": "1.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/depd": { "version": "1.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20027,7 +20026,7 @@ }, "node_modules/npm/node_modules/dezalgo": { "version": "1.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20037,7 +20036,7 @@ }, "node_modules/npm/node_modules/diff": { "version": "5.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-3-Clause", "engines": { @@ -20046,23 +20045,22 @@ }, "node_modules/npm/node_modules/emoji-regex": { "version": "8.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "iconv-lite": "^0.6.2" } }, "node_modules/npm/node_modules/env-paths": { "version": "2.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20071,19 +20069,19 @@ }, "node_modules/npm/node_modules/err-code": { "version": "2.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.12", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/fs-minipass": { "version": "2.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20095,19 +20093,19 @@ }, "node_modules/npm/node_modules/fs.realpath": { "version": "1.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/function-bind": { "version": "1.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/gauge": { "version": "4.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20126,7 +20124,7 @@ }, "node_modules/npm/node_modules/glob": { "version": "8.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20145,13 +20143,13 @@ }, "node_modules/npm/node_modules/graceful-fs": { "version": "4.2.10", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/has": { "version": "1.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20163,7 +20161,7 @@ }, "node_modules/npm/node_modules/has-flag": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20172,13 +20170,13 @@ }, "node_modules/npm/node_modules/has-unicode": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { "version": "5.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20190,13 +20188,13 @@ }, "node_modules/npm/node_modules/http-cache-semantics": { "version": "4.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "5.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20210,7 +20208,7 @@ }, "node_modules/npm/node_modules/https-proxy-agent": { "version": "5.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20223,7 +20221,7 @@ }, "node_modules/npm/node_modules/humanize-ms": { "version": "1.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20232,10 +20230,9 @@ }, "node_modules/npm/node_modules/iconv-lite": { "version": "0.6.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -20245,7 +20242,7 @@ }, "node_modules/npm/node_modules/ignore-walk": { "version": "5.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20257,7 +20254,7 @@ }, "node_modules/npm/node_modules/imurmurhash": { "version": "0.1.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20266,7 +20263,7 @@ }, "node_modules/npm/node_modules/indent-string": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20275,13 +20272,13 @@ }, "node_modules/npm/node_modules/infer-owner": { "version": "1.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/inflight": { "version": "1.0.6", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20291,13 +20288,13 @@ }, "node_modules/npm/node_modules/inherits": { "version": "2.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/ini": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -20306,7 +20303,7 @@ }, "node_modules/npm/node_modules/init-package-json": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20324,13 +20321,13 @@ }, "node_modules/npm/node_modules/ip": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/ip-regex": { "version": "4.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20339,7 +20336,7 @@ }, "node_modules/npm/node_modules/is-cidr": { "version": "4.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -20351,7 +20348,7 @@ }, "node_modules/npm/node_modules/is-core-module": { "version": "2.10.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20363,7 +20360,7 @@ }, "node_modules/npm/node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20372,25 +20369,25 @@ }, "node_modules/npm/node_modules/is-lambda": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/json-stringify-nice": { "version": "1.1.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -20399,28 +20396,28 @@ }, "node_modules/npm/node_modules/jsonparse": { "version": "1.3.1", - "dev": true, "engines": [ "node >= 0.2.0" ], + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff": { "version": "5.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.4.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/libnpmaccess": { "version": "6.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20435,7 +20432,7 @@ }, "node_modules/npm/node_modules/libnpmdiff": { "version": "4.0.5", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20454,7 +20451,7 @@ }, "node_modules/npm/node_modules/libnpmexec": { "version": "4.0.12", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20479,7 +20476,7 @@ }, "node_modules/npm/node_modules/libnpmfund": { "version": "3.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20491,7 +20488,7 @@ }, "node_modules/npm/node_modules/libnpmhook": { "version": "8.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20504,7 +20501,7 @@ }, "node_modules/npm/node_modules/libnpmorg": { "version": "4.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20517,7 +20514,7 @@ }, "node_modules/npm/node_modules/libnpmpack": { "version": "4.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20531,7 +20528,7 @@ }, "node_modules/npm/node_modules/libnpmpublish": { "version": "6.0.5", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20547,7 +20544,7 @@ }, "node_modules/npm/node_modules/libnpmsearch": { "version": "5.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20559,7 +20556,7 @@ }, "node_modules/npm/node_modules/libnpmteam": { "version": "4.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20572,7 +20569,7 @@ }, "node_modules/npm/node_modules/libnpmversion": { "version": "3.0.7", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20588,7 +20585,7 @@ }, "node_modules/npm/node_modules/lru-cache": { "version": "7.13.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -20597,7 +20594,7 @@ }, "node_modules/npm/node_modules/make-fetch-happen": { "version": "10.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20624,7 +20621,7 @@ }, "node_modules/npm/node_modules/minimatch": { "version": "5.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20636,7 +20633,7 @@ }, "node_modules/npm/node_modules/minipass": { "version": "3.3.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20648,7 +20645,7 @@ }, "node_modules/npm/node_modules/minipass-collect": { "version": "1.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20660,7 +20657,7 @@ }, "node_modules/npm/node_modules/minipass-fetch": { "version": "2.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20677,7 +20674,7 @@ }, "node_modules/npm/node_modules/minipass-flush": { "version": "1.0.5", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20689,7 +20686,7 @@ }, "node_modules/npm/node_modules/minipass-json-stream": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20699,7 +20696,7 @@ }, "node_modules/npm/node_modules/minipass-pipeline": { "version": "1.2.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20711,7 +20708,7 @@ }, "node_modules/npm/node_modules/minipass-sized": { "version": "1.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20723,7 +20720,7 @@ }, "node_modules/npm/node_modules/minizlib": { "version": "2.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20736,7 +20733,7 @@ }, "node_modules/npm/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "bin": { @@ -20748,7 +20745,7 @@ }, "node_modules/npm/node_modules/mkdirp-infer-owner": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20762,19 +20759,19 @@ }, "node_modules/npm/node_modules/ms": { "version": "2.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/mute-stream": { "version": "0.0.8", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/negotiator": { "version": "0.6.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -20783,7 +20780,7 @@ }, "node_modules/npm/node_modules/node-gyp": { "version": "9.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20807,7 +20804,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { "version": "1.1.11", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -20817,7 +20814,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/glob": { "version": "7.2.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20837,7 +20834,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { "version": "3.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20849,7 +20846,7 @@ }, "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { "version": "5.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20864,7 +20861,7 @@ }, "node_modules/npm/node_modules/nopt": { "version": "6.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20879,7 +20876,7 @@ }, "node_modules/npm/node_modules/normalize-package-data": { "version": "4.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -20894,7 +20891,7 @@ }, "node_modules/npm/node_modules/npm-audit-report": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20906,7 +20903,7 @@ }, "node_modules/npm/node_modules/npm-bundled": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20918,7 +20915,7 @@ }, "node_modules/npm/node_modules/npm-bundled/node_modules/npm-normalize-package-bin": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -20927,7 +20924,7 @@ }, "node_modules/npm/node_modules/npm-install-checks": { "version": "5.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -20939,13 +20936,13 @@ }, "node_modules/npm/node_modules/npm-normalize-package-bin": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/npm-package-arg": { "version": "9.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20960,7 +20957,7 @@ }, "node_modules/npm/node_modules/npm-packlist": { "version": "5.1.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -20978,7 +20975,7 @@ }, "node_modules/npm/node_modules/npm-packlist/node_modules/npm-normalize-package-bin": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -20987,7 +20984,7 @@ }, "node_modules/npm/node_modules/npm-pick-manifest": { "version": "7.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21002,7 +20999,7 @@ }, "node_modules/npm/node_modules/npm-pick-manifest/node_modules/npm-normalize-package-bin": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -21011,7 +21008,7 @@ }, "node_modules/npm/node_modules/npm-profile": { "version": "6.2.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21024,7 +21021,7 @@ }, "node_modules/npm/node_modules/npm-registry-fetch": { "version": "13.3.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21042,13 +21039,13 @@ }, "node_modules/npm/node_modules/npm-user-validate": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/npmlog": { "version": "6.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21063,7 +21060,7 @@ }, "node_modules/npm/node_modules/once": { "version": "1.4.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21072,7 +21069,7 @@ }, "node_modules/npm/node_modules/opener": { "version": "1.5.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "(WTFPL OR MIT)", "bin": { @@ -21081,7 +21078,7 @@ }, "node_modules/npm/node_modules/p-map": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21096,7 +21093,7 @@ }, "node_modules/npm/node_modules/pacote": { "version": "13.6.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21131,7 +21128,7 @@ }, "node_modules/npm/node_modules/parse-conflict-json": { "version": "2.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21145,7 +21142,7 @@ }, "node_modules/npm/node_modules/path-is-absolute": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -21154,7 +21151,7 @@ }, "node_modules/npm/node_modules/postcss-selector-parser": { "version": "6.0.10", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21167,7 +21164,7 @@ }, "node_modules/npm/node_modules/proc-log": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -21176,7 +21173,7 @@ }, "node_modules/npm/node_modules/promise-all-reject-late": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -21185,7 +21182,7 @@ }, "node_modules/npm/node_modules/promise-call-limit": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "funding": { @@ -21194,13 +21191,13 @@ }, "node_modules/npm/node_modules/promise-inflight": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21213,7 +21210,7 @@ }, "node_modules/npm/node_modules/promzard": { "version": "0.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21222,7 +21219,7 @@ }, "node_modules/npm/node_modules/qrcode-terminal": { "version": "0.12.0", - "dev": true, + "extraneous": true, "inBundle": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" @@ -21230,7 +21227,7 @@ }, "node_modules/npm/node_modules/read": { "version": "1.0.7", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21242,7 +21239,7 @@ }, "node_modules/npm/node_modules/read-cmd-shim": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -21251,7 +21248,7 @@ }, "node_modules/npm/node_modules/read-package-json": { "version": "5.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21266,7 +21263,7 @@ }, "node_modules/npm/node_modules/read-package-json-fast": { "version": "2.0.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21279,7 +21276,7 @@ }, "node_modules/npm/node_modules/read-package-json/node_modules/npm-normalize-package-bin": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -21288,7 +21285,7 @@ }, "node_modules/npm/node_modules/readable-stream": { "version": "3.6.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21302,7 +21299,7 @@ }, "node_modules/npm/node_modules/readdir-scoped-modules": { "version": "1.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21314,7 +21311,7 @@ }, "node_modules/npm/node_modules/retry": { "version": "0.12.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -21323,7 +21320,7 @@ }, "node_modules/npm/node_modules/rimraf": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21338,7 +21335,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { "version": "1.1.11", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21348,7 +21345,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/glob": { "version": "7.2.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21368,7 +21365,7 @@ }, "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { "version": "3.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21380,7 +21377,7 @@ }, "node_modules/npm/node_modules/safe-buffer": { "version": "5.2.1", - "dev": true, + "extraneous": true, "funding": [ { "type": "github", @@ -21400,14 +21397,13 @@ }, "node_modules/npm/node_modules/safer-buffer": { "version": "2.1.2", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/npm/node_modules/semver": { "version": "7.3.7", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21422,7 +21418,7 @@ }, "node_modules/npm/node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21434,19 +21430,19 @@ }, "node_modules/npm/node_modules/set-blocking": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/signal-exit": { "version": "3.0.7", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/smart-buffer": { "version": "4.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -21456,7 +21452,7 @@ }, "node_modules/npm/node_modules/socks": { "version": "2.7.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21470,7 +21466,7 @@ }, "node_modules/npm/node_modules/socks-proxy-agent": { "version": "7.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21484,7 +21480,7 @@ }, "node_modules/npm/node_modules/spdx-correct": { "version": "3.1.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -21494,13 +21490,13 @@ }, "node_modules/npm/node_modules/spdx-exceptions": { "version": "2.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "CC-BY-3.0" }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21510,13 +21506,13 @@ }, "node_modules/npm/node_modules/spdx-license-ids": { "version": "3.0.11", - "dev": true, + "extraneous": true, "inBundle": true, "license": "CC0-1.0" }, "node_modules/npm/node_modules/ssri": { "version": "9.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21528,7 +21524,7 @@ }, "node_modules/npm/node_modules/string_decoder": { "version": "1.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21537,7 +21533,7 @@ }, "node_modules/npm/node_modules/string-width": { "version": "4.2.3", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21551,7 +21547,7 @@ }, "node_modules/npm/node_modules/strip-ansi": { "version": "6.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21563,7 +21559,7 @@ }, "node_modules/npm/node_modules/supports-color": { "version": "7.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21575,7 +21571,7 @@ }, "node_modules/npm/node_modules/tar": { "version": "6.1.11", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21592,19 +21588,19 @@ }, "node_modules/npm/node_modules/text-table": { "version": "0.2.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/treeverse": { "version": "2.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -21613,7 +21609,7 @@ }, "node_modules/npm/node_modules/unique-filename": { "version": "2.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21625,7 +21621,7 @@ }, "node_modules/npm/node_modules/unique-slug": { "version": "3.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21637,13 +21633,13 @@ }, "node_modules/npm/node_modules/util-deprecate": { "version": "1.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", - "dev": true, + "extraneous": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -21653,7 +21649,7 @@ }, "node_modules/npm/node_modules/validate-npm-package-name": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21665,13 +21661,13 @@ }, "node_modules/npm/node_modules/walk-up-path": { "version": "1.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/wcwidth": { "version": "1.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -21680,7 +21676,7 @@ }, "node_modules/npm/node_modules/which": { "version": "2.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21695,7 +21691,7 @@ }, "node_modules/npm/node_modules/wide-align": { "version": "1.1.5", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21704,13 +21700,13 @@ }, "node_modules/npm/node_modules/wrappy": { "version": "1.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/write-file-atomic": { "version": "4.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -21723,7 +21719,7 @@ }, "node_modules/npm/node_modules/yallist": { "version": "4.0.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC" }, @@ -42748,23 +42744,22 @@ "@colors/colors": { "version": "1.5.0", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "@gar/promisify": { "version": "1.1.3", "bundled": true, - "dev": true + "extraneous": true }, "@isaacs/string-locale-compare": { "version": "1.1.0", "bundled": true, - "dev": true + "extraneous": true }, "@npmcli/arborist": { "version": "5.6.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -42807,12 +42802,12 @@ "@npmcli/ci-detect": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "@npmcli/config": { "version": "4.2.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/map-workspaces": "^2.0.2", "ini": "^3.0.0", @@ -42827,7 +42822,7 @@ "@npmcli/disparity-colors": { "version": "2.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ansi-styles": "^4.3.0" } @@ -42835,7 +42830,7 @@ "@npmcli/fs": { "version": "2.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@gar/promisify": "^1.1.3", "semver": "^7.3.5" @@ -42844,7 +42839,7 @@ "@npmcli/git": { "version": "3.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/promise-spawn": "^3.0.0", "lru-cache": "^7.4.4", @@ -42860,7 +42855,7 @@ "@npmcli/installed-package-contents": { "version": "1.0.7", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-bundled": "^1.1.1", "npm-normalize-package-bin": "^1.0.1" @@ -42869,7 +42864,7 @@ "npm-bundled": { "version": "1.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-normalize-package-bin": "^1.0.1" } @@ -42879,7 +42874,7 @@ "@npmcli/map-workspaces": { "version": "2.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/name-from-folder": "^1.0.1", "glob": "^8.0.1", @@ -42890,7 +42885,7 @@ "@npmcli/metavuln-calculator": { "version": "3.1.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "cacache": "^16.0.0", "json-parse-even-better-errors": "^2.3.1", @@ -42901,7 +42896,7 @@ "@npmcli/move-file": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" @@ -42910,17 +42905,17 @@ "@npmcli/name-from-folder": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "@npmcli/node-gyp": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "@npmcli/package-json": { "version": "2.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "json-parse-even-better-errors": "^2.3.1" } @@ -42928,7 +42923,7 @@ "@npmcli/promise-spawn": { "version": "3.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "infer-owner": "^1.0.4" } @@ -42936,7 +42931,7 @@ "@npmcli/query": { "version": "1.2.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-package-arg": "^9.1.0", "postcss-selector-parser": "^6.0.10", @@ -42946,7 +42941,7 @@ "@npmcli/run-script": { "version": "4.2.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/node-gyp": "^2.0.0", "@npmcli/promise-spawn": "^3.0.0", @@ -42958,17 +42953,17 @@ "@tootallnate/once": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "abbrev": { "version": "1.1.1", "bundled": true, - "dev": true + "extraneous": true }, "agent-base": { "version": "6.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "debug": "4" } @@ -42976,7 +42971,7 @@ "agentkeepalive": { "version": "4.2.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "debug": "^4.1.0", "depd": "^1.1.2", @@ -42986,7 +42981,7 @@ "aggregate-error": { "version": "3.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" @@ -42995,12 +42990,12 @@ "ansi-regex": { "version": "5.0.1", "bundled": true, - "dev": true + "extraneous": true }, "ansi-styles": { "version": "4.3.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "color-convert": "^2.0.1" } @@ -43008,17 +43003,17 @@ "aproba": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "archy": { "version": "1.0.0", "bundled": true, - "dev": true + "extraneous": true }, "are-we-there-yet": { "version": "3.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" @@ -43027,17 +43022,17 @@ "asap": { "version": "2.0.6", "bundled": true, - "dev": true + "extraneous": true }, "balanced-match": { "version": "1.0.2", "bundled": true, - "dev": true + "extraneous": true }, "bin-links": { "version": "3.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "cmd-shim": "^5.0.0", "mkdirp-infer-owner": "^2.0.0", @@ -43050,19 +43045,19 @@ "npm-normalize-package-bin": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, "binary-extensions": { "version": "2.2.0", "bundled": true, - "dev": true + "extraneous": true }, "brace-expansion": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "balanced-match": "^1.0.0" } @@ -43070,7 +43065,7 @@ "builtins": { "version": "5.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "semver": "^7.0.0" } @@ -43078,7 +43073,7 @@ "cacache": { "version": "16.1.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/fs": "^2.1.0", "@npmcli/move-file": "^2.0.0", @@ -43103,7 +43098,7 @@ "chalk": { "version": "4.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -43112,12 +43107,12 @@ "chownr": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "cidr-regex": { "version": "3.1.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ip-regex": "^4.1.0" } @@ -43125,12 +43120,12 @@ "clean-stack": { "version": "2.2.0", "bundled": true, - "dev": true + "extraneous": true }, "cli-columns": { "version": "4.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "string-width": "^4.2.3", "strip-ansi": "^6.0.1" @@ -43139,7 +43134,7 @@ "cli-table3": { "version": "0.6.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@colors/colors": "1.5.0", "string-width": "^4.2.0" @@ -43148,12 +43143,12 @@ "clone": { "version": "1.0.4", "bundled": true, - "dev": true + "extraneous": true }, "cmd-shim": { "version": "5.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "mkdirp-infer-owner": "^2.0.0" } @@ -43161,7 +43156,7 @@ "color-convert": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "color-name": "~1.1.4" } @@ -43169,17 +43164,17 @@ "color-name": { "version": "1.1.4", "bundled": true, - "dev": true + "extraneous": true }, "color-support": { "version": "1.1.3", "bundled": true, - "dev": true + "extraneous": true }, "columnify": { "version": "1.6.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "strip-ansi": "^6.0.1", "wcwidth": "^1.0.0" @@ -43188,27 +43183,27 @@ "common-ancestor-path": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "extraneous": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "extraneous": true }, "cssesc": { "version": "3.0.0", "bundled": true, - "dev": true + "extraneous": true }, "debug": { "version": "4.3.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ms": "2.1.2" }, @@ -43216,19 +43211,19 @@ "ms": { "version": "2.1.2", "bundled": true, - "dev": true + "extraneous": true } } }, "debuglog": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "defaults": { "version": "1.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "clone": "^1.0.2" } @@ -43236,17 +43231,17 @@ "delegates": { "version": "1.0.0", "bundled": true, - "dev": true + "extraneous": true }, "depd": { "version": "1.1.2", "bundled": true, - "dev": true + "extraneous": true }, "dezalgo": { "version": "1.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "asap": "^2.0.0", "wrappy": "1" @@ -43255,18 +43250,17 @@ "diff": { "version": "5.1.0", "bundled": true, - "dev": true + "extraneous": true }, "emoji-regex": { "version": "8.0.0", "bundled": true, - "dev": true + "extraneous": true }, "encoding": { "version": "0.1.13", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "iconv-lite": "^0.6.2" } @@ -43274,22 +43268,22 @@ "env-paths": { "version": "2.2.1", "bundled": true, - "dev": true + "extraneous": true }, "err-code": { "version": "2.0.3", "bundled": true, - "dev": true + "extraneous": true }, "fastest-levenshtein": { "version": "1.0.12", "bundled": true, - "dev": true + "extraneous": true }, "fs-minipass": { "version": "2.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0" } @@ -43297,17 +43291,17 @@ "fs.realpath": { "version": "1.0.0", "bundled": true, - "dev": true + "extraneous": true }, "function-bind": { "version": "1.1.1", "bundled": true, - "dev": true + "extraneous": true }, "gauge": { "version": "4.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.3", @@ -43322,7 +43316,7 @@ "glob": { "version": "8.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -43334,12 +43328,12 @@ "graceful-fs": { "version": "4.2.10", "bundled": true, - "dev": true + "extraneous": true }, "has": { "version": "1.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "function-bind": "^1.1.1" } @@ -43347,17 +43341,17 @@ "has-flag": { "version": "4.0.0", "bundled": true, - "dev": true + "extraneous": true }, "has-unicode": { "version": "2.0.1", "bundled": true, - "dev": true + "extraneous": true }, "hosted-git-info": { "version": "5.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "lru-cache": "^7.5.1" } @@ -43365,12 +43359,12 @@ "http-cache-semantics": { "version": "4.1.0", "bundled": true, - "dev": true + "extraneous": true }, "http-proxy-agent": { "version": "5.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@tootallnate/once": "2", "agent-base": "6", @@ -43380,7 +43374,7 @@ "https-proxy-agent": { "version": "5.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "agent-base": "6", "debug": "4" @@ -43389,7 +43383,7 @@ "humanize-ms": { "version": "1.2.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ms": "^2.0.0" } @@ -43397,8 +43391,7 @@ "iconv-lite": { "version": "0.6.3", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "safer-buffer": ">= 2.1.2 < 3.0.0" } @@ -43406,7 +43399,7 @@ "ignore-walk": { "version": "5.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minimatch": "^5.0.1" } @@ -43414,22 +43407,22 @@ "imurmurhash": { "version": "0.1.4", "bundled": true, - "dev": true + "extraneous": true }, "indent-string": { "version": "4.0.0", "bundled": true, - "dev": true + "extraneous": true }, "infer-owner": { "version": "1.0.4", "bundled": true, - "dev": true + "extraneous": true }, "inflight": { "version": "1.0.6", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -43438,17 +43431,17 @@ "inherits": { "version": "2.0.4", "bundled": true, - "dev": true + "extraneous": true }, "ini": { "version": "3.0.1", "bundled": true, - "dev": true + "extraneous": true }, "init-package-json": { "version": "3.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-package-arg": "^9.0.1", "promzard": "^0.3.0", @@ -43462,17 +43455,17 @@ "ip": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "ip-regex": { "version": "4.3.0", "bundled": true, - "dev": true + "extraneous": true }, "is-cidr": { "version": "4.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "cidr-regex": "^3.1.1" } @@ -43480,7 +43473,7 @@ "is-core-module": { "version": "2.10.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "has": "^1.0.3" } @@ -43488,47 +43481,47 @@ "is-fullwidth-code-point": { "version": "3.0.0", "bundled": true, - "dev": true + "extraneous": true }, "is-lambda": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "isexe": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "json-parse-even-better-errors": { "version": "2.3.1", "bundled": true, - "dev": true + "extraneous": true }, "json-stringify-nice": { "version": "1.1.4", "bundled": true, - "dev": true + "extraneous": true }, "jsonparse": { "version": "1.3.1", "bundled": true, - "dev": true + "extraneous": true }, "just-diff": { "version": "5.1.1", "bundled": true, - "dev": true + "extraneous": true }, "just-diff-apply": { "version": "5.4.1", "bundled": true, - "dev": true + "extraneous": true }, "libnpmaccess": { "version": "6.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aproba": "^2.0.0", "minipass": "^3.1.1", @@ -43539,7 +43532,7 @@ "libnpmdiff": { "version": "4.0.5", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/disparity-colors": "^2.0.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -43554,7 +43547,7 @@ "libnpmexec": { "version": "4.0.12", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/arborist": "^5.6.1", "@npmcli/ci-detect": "^2.0.0", @@ -43575,7 +43568,7 @@ "libnpmfund": { "version": "3.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/arborist": "^5.6.1" } @@ -43583,7 +43576,7 @@ "libnpmhook": { "version": "8.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -43592,7 +43585,7 @@ "libnpmorg": { "version": "4.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -43601,7 +43594,7 @@ "libnpmpack": { "version": "4.1.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/run-script": "^4.1.3", "npm-package-arg": "^9.0.1", @@ -43611,7 +43604,7 @@ "libnpmpublish": { "version": "6.0.5", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "normalize-package-data": "^4.0.0", "npm-package-arg": "^9.0.1", @@ -43623,7 +43616,7 @@ "libnpmsearch": { "version": "5.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-registry-fetch": "^13.0.0" } @@ -43631,7 +43624,7 @@ "libnpmteam": { "version": "4.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aproba": "^2.0.0", "npm-registry-fetch": "^13.0.0" @@ -43640,7 +43633,7 @@ "libnpmversion": { "version": "3.0.7", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/git": "^3.0.0", "@npmcli/run-script": "^4.1.3", @@ -43652,12 +43645,12 @@ "lru-cache": { "version": "7.13.2", "bundled": true, - "dev": true + "extraneous": true }, "make-fetch-happen": { "version": "10.2.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "agentkeepalive": "^4.2.1", "cacache": "^16.1.0", @@ -43680,7 +43673,7 @@ "minimatch": { "version": "5.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "brace-expansion": "^2.0.1" } @@ -43688,7 +43681,7 @@ "minipass": { "version": "3.3.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "yallist": "^4.0.0" } @@ -43696,7 +43689,7 @@ "minipass-collect": { "version": "1.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0" } @@ -43704,7 +43697,7 @@ "minipass-fetch": { "version": "2.1.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "encoding": "^0.1.13", "minipass": "^3.1.6", @@ -43715,7 +43708,7 @@ "minipass-flush": { "version": "1.0.5", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0" } @@ -43723,7 +43716,7 @@ "minipass-json-stream": { "version": "1.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "jsonparse": "^1.3.1", "minipass": "^3.0.0" @@ -43732,7 +43725,7 @@ "minipass-pipeline": { "version": "1.2.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0" } @@ -43740,7 +43733,7 @@ "minipass-sized": { "version": "1.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0" } @@ -43748,7 +43741,7 @@ "minizlib": { "version": "2.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -43757,12 +43750,12 @@ "mkdirp": { "version": "1.0.4", "bundled": true, - "dev": true + "extraneous": true }, "mkdirp-infer-owner": { "version": "2.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "chownr": "^2.0.0", "infer-owner": "^1.0.4", @@ -43772,22 +43765,22 @@ "ms": { "version": "2.1.3", "bundled": true, - "dev": true + "extraneous": true }, "mute-stream": { "version": "0.0.8", "bundled": true, - "dev": true + "extraneous": true }, "negotiator": { "version": "0.6.3", "bundled": true, - "dev": true + "extraneous": true }, "node-gyp": { "version": "9.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "env-paths": "^2.2.0", "glob": "^7.1.4", @@ -43804,7 +43797,7 @@ "brace-expansion": { "version": "1.1.11", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -43813,7 +43806,7 @@ "glob": { "version": "7.2.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -43826,7 +43819,7 @@ "minimatch": { "version": "3.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "brace-expansion": "^1.1.7" } @@ -43834,7 +43827,7 @@ "nopt": { "version": "5.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "abbrev": "1" } @@ -43844,7 +43837,7 @@ "nopt": { "version": "6.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "abbrev": "^1.0.0" } @@ -43852,7 +43845,7 @@ "normalize-package-data": { "version": "4.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "hosted-git-info": "^5.0.0", "is-core-module": "^2.8.1", @@ -43863,7 +43856,7 @@ "npm-audit-report": { "version": "3.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "chalk": "^4.0.0" } @@ -43871,7 +43864,7 @@ "npm-bundled": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-normalize-package-bin": "^2.0.0" }, @@ -43879,14 +43872,14 @@ "npm-normalize-package-bin": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, "npm-install-checks": { "version": "5.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "semver": "^7.1.1" } @@ -43894,12 +43887,12 @@ "npm-normalize-package-bin": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "npm-package-arg": { "version": "9.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "hosted-git-info": "^5.0.0", "proc-log": "^2.0.1", @@ -43910,7 +43903,7 @@ "npm-packlist": { "version": "5.1.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "glob": "^8.0.1", "ignore-walk": "^5.0.1", @@ -43921,14 +43914,14 @@ "npm-normalize-package-bin": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, "npm-pick-manifest": { "version": "7.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-install-checks": "^5.0.0", "npm-normalize-package-bin": "^2.0.0", @@ -43939,14 +43932,14 @@ "npm-normalize-package-bin": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, "npm-profile": { "version": "6.2.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "npm-registry-fetch": "^13.0.1", "proc-log": "^2.0.0" @@ -43955,7 +43948,7 @@ "npm-registry-fetch": { "version": "13.3.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", @@ -43969,12 +43962,12 @@ "npm-user-validate": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "npmlog": { "version": "6.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "are-we-there-yet": "^3.0.0", "console-control-strings": "^1.1.0", @@ -43985,7 +43978,7 @@ "once": { "version": "1.4.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "wrappy": "1" } @@ -43993,12 +43986,12 @@ "opener": { "version": "1.5.2", "bundled": true, - "dev": true + "extraneous": true }, "p-map": { "version": "4.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "aggregate-error": "^3.0.0" } @@ -44006,7 +43999,7 @@ "pacote": { "version": "13.6.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "@npmcli/git": "^3.0.0", "@npmcli/installed-package-contents": "^1.0.7", @@ -44034,7 +44027,7 @@ "parse-conflict-json": { "version": "2.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "json-parse-even-better-errors": "^2.3.1", "just-diff": "^5.0.1", @@ -44044,12 +44037,12 @@ "path-is-absolute": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "postcss-selector-parser": { "version": "6.0.10", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -44058,27 +44051,27 @@ "proc-log": { "version": "2.0.1", "bundled": true, - "dev": true + "extraneous": true }, "promise-all-reject-late": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "promise-call-limit": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "promise-inflight": { "version": "1.0.1", "bundled": true, - "dev": true + "extraneous": true }, "promise-retry": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "err-code": "^2.0.2", "retry": "^0.12.0" @@ -44087,7 +44080,7 @@ "promzard": { "version": "0.3.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "read": "1" } @@ -44095,12 +44088,12 @@ "qrcode-terminal": { "version": "0.12.0", "bundled": true, - "dev": true + "extraneous": true }, "read": { "version": "1.0.7", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "mute-stream": "~0.0.4" } @@ -44108,12 +44101,12 @@ "read-cmd-shim": { "version": "3.0.0", "bundled": true, - "dev": true + "extraneous": true }, "read-package-json": { "version": "5.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "glob": "^8.0.1", "json-parse-even-better-errors": "^2.3.1", @@ -44124,14 +44117,14 @@ "npm-normalize-package-bin": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, "read-package-json-fast": { "version": "2.0.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "json-parse-even-better-errors": "^2.3.0", "npm-normalize-package-bin": "^1.0.1" @@ -44140,7 +44133,7 @@ "readable-stream": { "version": "3.6.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -44150,7 +44143,7 @@ "readdir-scoped-modules": { "version": "1.1.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "debuglog": "^1.0.1", "dezalgo": "^1.0.0", @@ -44161,12 +44154,12 @@ "retry": { "version": "0.12.0", "bundled": true, - "dev": true + "extraneous": true }, "rimraf": { "version": "3.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "glob": "^7.1.3" }, @@ -44174,7 +44167,7 @@ "brace-expansion": { "version": "1.1.11", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -44183,7 +44176,7 @@ "glob": { "version": "7.2.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -44196,7 +44189,7 @@ "minimatch": { "version": "3.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "brace-expansion": "^1.1.7" } @@ -44206,18 +44199,17 @@ "safe-buffer": { "version": "5.2.1", "bundled": true, - "dev": true + "extraneous": true }, "safer-buffer": { "version": "2.1.2", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "semver": { "version": "7.3.7", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "lru-cache": "^6.0.0" }, @@ -44225,7 +44217,7 @@ "lru-cache": { "version": "6.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "yallist": "^4.0.0" } @@ -44235,22 +44227,22 @@ "set-blocking": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "signal-exit": { "version": "3.0.7", "bundled": true, - "dev": true + "extraneous": true }, "smart-buffer": { "version": "4.2.0", "bundled": true, - "dev": true + "extraneous": true }, "socks": { "version": "2.7.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" @@ -44259,7 +44251,7 @@ "socks-proxy-agent": { "version": "7.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "agent-base": "^6.0.2", "debug": "^4.3.3", @@ -44269,7 +44261,7 @@ "spdx-correct": { "version": "3.1.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -44278,12 +44270,12 @@ "spdx-exceptions": { "version": "2.3.0", "bundled": true, - "dev": true + "extraneous": true }, "spdx-expression-parse": { "version": "3.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -44292,12 +44284,12 @@ "spdx-license-ids": { "version": "3.0.11", "bundled": true, - "dev": true + "extraneous": true }, "ssri": { "version": "9.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "minipass": "^3.1.1" } @@ -44305,7 +44297,7 @@ "string_decoder": { "version": "1.3.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "safe-buffer": "~5.2.0" } @@ -44313,7 +44305,7 @@ "string-width": { "version": "4.2.3", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -44323,7 +44315,7 @@ "strip-ansi": { "version": "6.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "ansi-regex": "^5.0.1" } @@ -44331,7 +44323,7 @@ "supports-color": { "version": "7.2.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "has-flag": "^4.0.0" } @@ -44339,7 +44331,7 @@ "tar": { "version": "6.1.11", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -44352,22 +44344,22 @@ "text-table": { "version": "0.2.0", "bundled": true, - "dev": true + "extraneous": true }, "tiny-relative-date": { "version": "1.3.0", "bundled": true, - "dev": true + "extraneous": true }, "treeverse": { "version": "2.0.0", "bundled": true, - "dev": true + "extraneous": true }, "unique-filename": { "version": "2.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "unique-slug": "^3.0.0" } @@ -44375,7 +44367,7 @@ "unique-slug": { "version": "3.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "imurmurhash": "^0.1.4" } @@ -44383,12 +44375,12 @@ "util-deprecate": { "version": "1.0.2", "bundled": true, - "dev": true + "extraneous": true }, "validate-npm-package-license": { "version": "3.0.4", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -44397,7 +44389,7 @@ "validate-npm-package-name": { "version": "4.0.0", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "builtins": "^5.0.0" } @@ -44405,12 +44397,12 @@ "walk-up-path": { "version": "1.0.0", "bundled": true, - "dev": true + "extraneous": true }, "wcwidth": { "version": "1.0.1", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "defaults": "^1.0.3" } @@ -44418,7 +44410,7 @@ "which": { "version": "2.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "isexe": "^2.0.0" } @@ -44426,7 +44418,7 @@ "wide-align": { "version": "1.1.5", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "string-width": "^1.0.2 || 2 || 3 || 4" } @@ -44434,12 +44426,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "extraneous": true }, "write-file-atomic": { "version": "4.0.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -44448,7 +44440,7 @@ "yallist": { "version": "4.0.0", "bundled": true, - "dev": true + "extraneous": true } } }, diff --git a/src/AnonymousUtils.ts b/src/AnonymousUtils.ts index 9950af8dd..6cc1672c8 100644 --- a/src/AnonymousUtils.ts +++ b/src/AnonymousUtils.ts @@ -120,4 +120,5 @@ const AnonymousUtils = { }, }; +module.exports = AnonymousUtils; export default AnonymousUtils; diff --git a/src/CoreManager.ts b/src/CoreManager.ts index 661da25e8..e3f7e72be 100644 --- a/src/CoreManager.ts +++ b/src/CoreManager.ts @@ -1,8 +1,8 @@ +import type ParseObject from './ParseObject'; import type { AttributeMap, ObjectCache, OpsMap, State } from './ObjectStateMutations'; import type ParseFile from './ParseFile'; import type { FileSaveOptions, FileSource } from './ParseFile'; import type { Op } from './ParseOp'; -import type ParseObject from './ParseObject'; import type { QueryJSON } from './ParseQuery'; import type ParseUser from './ParseUser'; import type { AuthData } from './ParseUser'; diff --git a/src/FacebookUtils.ts b/src/FacebookUtils.ts index 5b744b794..c25db5416 100644 --- a/src/FacebookUtils.ts +++ b/src/FacebookUtils.ts @@ -234,5 +234,5 @@ const FacebookUtils = { return provider; }, }; - +module.exports = FacebookUtils; export default FacebookUtils; diff --git a/src/IndexedDBStorageController.ts b/src/IndexedDBStorageController.ts index 3dc0e8fc6..c693345f6 100644 --- a/src/IndexedDBStorageController.ts +++ b/src/IndexedDBStorageController.ts @@ -39,4 +39,5 @@ if (typeof window !== 'undefined' && window.indexedDB) { // IndexedDB not supported module.exports = undefined; } +module.exports = IndexedDBStorageController; export default IndexedDBStorageController; \ No newline at end of file diff --git a/src/LiveQueryClient.ts b/src/LiveQueryClient.ts index 97667b435..621df05f0 100644 --- a/src/LiveQueryClient.ts +++ b/src/LiveQueryClient.ts @@ -192,7 +192,7 @@ class LiveQueryClient { */ subscribe(query: ParseQuery, sessionToken?: string): LiveQuerySubscription { if (!query) { - throw new ParseError(ParseError.INCORRECT_TYPE, 'Subscribe requires a query.') + return undefined; } const className = query.className; const queryJSON = query.toJSON(); @@ -522,5 +522,5 @@ if (process.env.PARSE_BUILD === 'node') { } else if (process.env.PARSE_BUILD === 'react-native') { CoreManager.setWebSocketController(WebSocket as any); } - +module.exports = LiveQueryClient; export default LiveQueryClient; diff --git a/src/LiveQuerySubscription.ts b/src/LiveQuerySubscription.ts index 62ff1de4f..340f5ba3a 100644 --- a/src/LiveQuerySubscription.ts +++ b/src/LiveQuerySubscription.ts @@ -133,5 +133,5 @@ class Subscription { }); } } - +module.exports = Subscription; export default Subscription; diff --git a/src/Parse.ts b/src/Parse.ts index 7863ec793..0085383ff 100644 --- a/src/Parse.ts +++ b/src/Parse.ts @@ -1,10 +1,7 @@ -import decode from './decode'; -import encode from './encode'; import CryptoController from './CryptoController'; import EventuallyQueue from './EventuallyQueue'; import IndexedDBStorageController from './IndexedDBStorageController'; import InstallationController from './InstallationController'; -import * as ParseOp from './ParseOp'; import RESTController from './RESTController'; import ACL from './ParseACL'; import * as Analytics from './Analytics' @@ -21,7 +18,7 @@ import GeoPoint from './ParseGeoPoint' import Polygon from './ParsePolygon' import Installation from './ParseInstallation' import LocalDatastore from './LocalDatastore' -import Object from './ParseObject' +import ParseObject from './ParseObject' import * as Push from './Push' import Query from './ParseQuery' import Relation from './ParseRelation' @@ -32,6 +29,10 @@ import Storage from './Storage' import User from './ParseUser' import LiveQuery from './ParseLiveQuery' import LiveQueryClient from './LiveQueryClient' +// Need to reorder these last due to them requiring ParseObject/ParseRole, etc to be defined first +import * as ParseOp from './ParseOp'; +import decode from './decode'; +import encode from './encode'; /** * Contains all Parse API classes and functions. @@ -63,7 +64,7 @@ interface ParseType { Polygon: typeof Polygon, Installation: typeof Installation, LocalDatastore: typeof LocalDatastore, - Object: typeof Object, + Object: typeof ParseObject, Op: { Set: typeof ParseOp.SetOp, Unset: typeof ParseOp.UnsetOp, @@ -130,7 +131,7 @@ const Parse: ParseType = { Polygon: Polygon, Installation: Installation, LocalDatastore: LocalDatastore, - Object: Object, + Object: ParseObject, Op: { Set: ParseOp.SetOp, Unset: ParseOp.UnsetOp, diff --git a/src/ParseACL.ts b/src/ParseACL.ts index c1b0bbad5..fdb74e414 100644 --- a/src/ParseACL.ts +++ b/src/ParseACL.ts @@ -326,5 +326,5 @@ class ParseACL { this.setWriteAccess('role:' + role, allowed); } } - +module.exports = ParseACL; export default ParseACL; diff --git a/src/ParseCLP.ts b/src/ParseCLP.ts index 6be55d917..d85245e2d 100644 --- a/src/ParseCLP.ts +++ b/src/ParseCLP.ts @@ -603,5 +603,5 @@ class ParseCLP { this.setProtectedFields(this._getRoleName(role), fields); } } - +module.exports = ParseCLP; export default ParseCLP; diff --git a/src/ParseConfig.ts b/src/ParseConfig.ts index 89ed810b9..9ae09dc8c 100644 --- a/src/ParseConfig.ts +++ b/src/ParseConfig.ts @@ -221,5 +221,5 @@ const DefaultController = { }; CoreManager.setConfigController(DefaultController); - +module.exports = ParseConfig; export default ParseConfig; diff --git a/src/ParseError.ts b/src/ParseError.ts index 1f8e4e0b1..dd110df00 100644 --- a/src/ParseError.ts +++ b/src/ParseError.ts @@ -556,4 +556,5 @@ class ParseError extends Error { static X_DOMAIN_REQUEST = 602; } +module.exports = ParseError; export default ParseError; \ No newline at end of file diff --git a/src/ParseFile.ts b/src/ParseFile.ts index 3904679d9..7e63e65c9 100644 --- a/src/ParseFile.ts +++ b/src/ParseFile.ts @@ -574,4 +574,5 @@ const DefaultController = { CoreManager.setFileController(DefaultController); export default ParseFile; -exports.b64Digit = b64Digit; +module.exports = ParseFile; +module.exports.b64Digit = b64Digit; diff --git a/src/ParseGeoPoint.ts b/src/ParseGeoPoint.ts index 95cdd8e95..887224b3f 100644 --- a/src/ParseGeoPoint.ts +++ b/src/ParseGeoPoint.ts @@ -196,4 +196,5 @@ class ParseGeoPoint { } } +module.exports = ParseGeoPoint; export default ParseGeoPoint; diff --git a/src/ParseInstallation.ts b/src/ParseInstallation.ts index c624aa27f..1f310819d 100644 --- a/src/ParseInstallation.ts +++ b/src/ParseInstallation.ts @@ -16,5 +16,5 @@ export default class Installation extends ParseObject { } } } - +module.exports = Installation; ParseObject.registerSubclass('_Installation', Installation); diff --git a/src/ParseLiveQuery.ts b/src/ParseLiveQuery.ts index 0a507d6a6..e3335a3c5 100644 --- a/src/ParseLiveQuery.ts +++ b/src/ParseLiveQuery.ts @@ -73,6 +73,7 @@ class LiveQuery { } } +module.exports = LiveQuery; export default LiveQuery; let defaultLiveQueryClient; diff --git a/src/ParseObject.ts b/src/ParseObject.ts index 2a7f5a3d2..f608dec7c 100644 --- a/src/ParseObject.ts +++ b/src/ParseObject.ts @@ -3,7 +3,7 @@ */ import CoreManager from './CoreManager'; -import canBeSerialized from './canBeSerialized'; +// import canBeSerialized from './canBeSerialized'; import decode from './decode'; import encode from './encode'; import escape from './escape'; @@ -38,6 +38,51 @@ import type { RequestOptions, FullOptions } from './RESTController'; import uuidv4 from './uuid'; +export function canBeSerialized(obj: ParseObject): boolean { + if (!(obj instanceof ParseObject)) { + return true; + } + const attributes = obj.attributes; + for (const attr in attributes) { + const val = attributes[attr]; + if (!canBeSerializedHelper(val)) { + return false; + } + } + return true; +} +function canBeSerializedHelper(value: any): boolean { + if (typeof value !== 'object') { + return true; + } + if (value instanceof ParseRelation) { + return true; + } + if (value instanceof ParseObject) { + return !!value.id; + } + if (value instanceof ParseFile) { + if (value.url()) { + return true; + } + return false; + } + if (Array.isArray(value)) { + for (let i = 0; i < value.length; i++) { + if (!canBeSerializedHelper(value[i])) { + return false; + } + } + return true; + } + for (const k in value) { + if (!canBeSerializedHelper(value[k])) { + return false; + } + } + return true; +} + export type Pointer = { __type: string, className: string, @@ -707,15 +752,15 @@ class ParseObject { * The only supported option is error. * @returns {(ParseObject|boolean)} true if the set succeeded. */ - set(keyOrAttributes: string | AttributeMap, valueOrOptions?: any, options?: any): ParseObject | boolean { - let changes: AttributeMap = {}; + set(key: any, value?: any, options?: any): ParseObject | boolean { + // TODO: Improve types here without breaking stuff. + let changes = {}; const newOps = {}; - let key: string | undefined; - if (keyOrAttributes && typeof keyOrAttributes === 'object') { - changes = keyOrAttributes; - options = valueOrOptions; + if (key && typeof key === 'object') { + changes = key; + options = value; } else if (typeof key === 'string') { - changes[key] = valueOrOptions; + changes[key] = value; } else { // Key is weird; just return ourself return this; @@ -2578,5 +2623,5 @@ const DefaultController = { }; CoreManager.setObjectController(DefaultController); - +module.exports = ParseObject; export default ParseObject; diff --git a/src/ParsePolygon.ts b/src/ParsePolygon.ts index 27a8ed367..64efe6b90 100644 --- a/src/ParsePolygon.ts +++ b/src/ParsePolygon.ts @@ -161,5 +161,5 @@ class ParsePolygon { return points; } } - +module.exports = ParsePolygon; export default ParsePolygon; diff --git a/src/ParseQuery.ts b/src/ParseQuery.ts index 3e6d5edf2..165441f3e 100644 --- a/src/ParseQuery.ts +++ b/src/ParseQuery.ts @@ -2162,4 +2162,5 @@ const DefaultController = { CoreManager.setQueryController(DefaultController); +module.exports = ParseQuery; export default ParseQuery; diff --git a/src/ParseRelation.ts b/src/ParseRelation.ts index 23b9f5c19..c9748f185 100644 --- a/src/ParseRelation.ts +++ b/src/ParseRelation.ts @@ -3,7 +3,7 @@ */ import { RelationOp } from './ParseOp'; -import ParseObject from './ParseObject'; +import type ParseObject from './ParseObject'; import ParseQuery from './ParseQuery'; /** @@ -147,5 +147,5 @@ class ParseRelation { return query; } } - +module.exports = ParseRelation; export default ParseRelation; diff --git a/src/ParseRole.ts b/src/ParseRole.ts index badf6df69..fdbc07043 100644 --- a/src/ParseRole.ts +++ b/src/ParseRole.ts @@ -2,9 +2,9 @@ * @flow */ +import ParseObject from './ParseObject'; import ParseACL from './ParseACL'; import ParseError from './ParseError'; -import ParseObject from './ParseObject'; import type { AttributeMap } from './ObjectStateMutations'; import type ParseRelation from './ParseRelation'; @@ -142,5 +142,5 @@ class ParseRole extends ParseObject { } ParseObject.registerSubclass('_Role', ParseRole); - +module.exports = ParseRole; export default ParseRole; diff --git a/src/ParseSchema.ts b/src/ParseSchema.ts index de5bca077..2c7c1b324 100644 --- a/src/ParseSchema.ts +++ b/src/ParseSchema.ts @@ -503,5 +503,5 @@ const DefaultController = { }; CoreManager.setSchemaController(DefaultController); - +module.exports = ParseSchema; export default ParseSchema; diff --git a/src/ParseSession.ts b/src/ParseSession.ts index ab64e43a3..bd894ed8b 100644 --- a/src/ParseSession.ts +++ b/src/ParseSession.ts @@ -105,5 +105,5 @@ const DefaultController = { }; CoreManager.setSessionController(DefaultController); - +module.exports = ParseSession; export default ParseSession; diff --git a/src/ParseUser.ts b/src/ParseUser.ts index b514b4645..3fa00f97d 100644 --- a/src/ParseUser.ts +++ b/src/ParseUser.ts @@ -1291,5 +1291,5 @@ const DefaultController = { }; CoreManager.setUserController(DefaultController); - +module.exports = ParseUser; export default ParseUser; diff --git a/src/__tests__/AnonymousUtils-test.js b/src/__tests__/AnonymousUtils-test.js index 053656278..a2b4c51dc 100644 --- a/src/__tests__/AnonymousUtils-test.js +++ b/src/__tests__/AnonymousUtils-test.js @@ -31,7 +31,7 @@ const mockProvider = { }, }; -const AnonymousUtils = require('../AnonymousUtils').default; +const AnonymousUtils = require('../AnonymousUtils'); describe('AnonymousUtils', () => { beforeEach(() => { diff --git a/src/__tests__/EventuallyQueue-test.js b/src/__tests__/EventuallyQueue-test.js index 3b98d5022..723c481ac 100644 --- a/src/__tests__/EventuallyQueue-test.js +++ b/src/__tests__/EventuallyQueue-test.js @@ -46,7 +46,7 @@ jest.mock('../ParseQuery', () => { const mockRNStorageInterface = require('./test_helpers/mockRNStorage'); const CoreManager = require('../CoreManager'); const EventuallyQueue = require('../EventuallyQueue'); -const ParseError = require('../ParseError').default; +const ParseError = require('../ParseError'); const ParseObject = require('../ParseObject'); const RESTController = require('../RESTController'); const Storage = require('../Storage'); diff --git a/src/__tests__/FacebookUtils-test.js b/src/__tests__/FacebookUtils-test.js index 81ce4dc63..7c10ba2d8 100644 --- a/src/__tests__/FacebookUtils-test.js +++ b/src/__tests__/FacebookUtils-test.js @@ -14,7 +14,7 @@ class MockUser { jest.setMock('../ParseUser', MockUser); -const FacebookUtils = require('../FacebookUtils').default; +const FacebookUtils = require('../FacebookUtils'); describe('FacebookUtils', () => { beforeEach(() => { diff --git a/src/__tests__/LiveQueryClient-test.js b/src/__tests__/LiveQueryClient-test.js index 9cd4e4f5f..7dbae3287 100644 --- a/src/__tests__/LiveQueryClient-test.js +++ b/src/__tests__/LiveQueryClient-test.js @@ -36,9 +36,9 @@ jest.setMock('../LocalDatastore', mockLocalDatastore); const CoreManager = require('../CoreManager'); const EventEmitter = require('../EventEmitter'); -const LiveQueryClient = require('../LiveQueryClient').default; -const ParseObject = require('../ParseObject').default; -const ParseQuery = require('../ParseQuery').default; +const LiveQueryClient = require('../LiveQueryClient'); +const ParseObject = require('../ParseObject'); +const ParseQuery = require('../ParseQuery'); const { resolvingPromise } = require('../promiseUtils'); const events = require('events'); diff --git a/src/__tests__/LocalDatastore-test.js b/src/__tests__/LocalDatastore-test.js index 898f7985a..38b12e466 100644 --- a/src/__tests__/LocalDatastore-test.js +++ b/src/__tests__/LocalDatastore-test.js @@ -3,7 +3,7 @@ jest.autoMockOff(); jest.unmock('../LocalDatastoreUtils'); -const encode = require('../encode').default; +const encode = require('../encode'); let objectCount = 0; @@ -91,7 +91,7 @@ const CoreManager = require('../CoreManager'); const LocalDatastore = require('../LocalDatastore'); const ParseObject = require('../ParseObject'); const ParseQuery = require('../ParseQuery'); -const ParseUser = require('../ParseUser').default; +const ParseUser = require('../ParseUser'); const LocalDatastoreController = require('../LocalDatastoreController'); const RNDatastoreController = require('../LocalDatastoreController.react-native'); const BrowserStorageController = require('../StorageController.browser'); diff --git a/src/__tests__/OfflineQuery-test.js b/src/__tests__/OfflineQuery-test.js index f700f3210..0917781de 100644 --- a/src/__tests__/OfflineQuery-test.js +++ b/src/__tests__/OfflineQuery-test.js @@ -2,12 +2,12 @@ jest.autoMockOff(); const matchesQuery = require('../OfflineQuery').matchesQuery; const validateQuery = require('../OfflineQuery').validateQuery; -const ParseError = require('../ParseError').default; -const ParseObject = require('../ParseObject').default; -const ParseQuery = require('../ParseQuery').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; -const ParsePolygon = require('../ParsePolygon').default; -const ParseUser = require('../ParseUser').default; +const ParseError = require('../ParseError'); +const ParseObject = require('../ParseObject'); +const ParseQuery = require('../ParseQuery'); +const ParseGeoPoint = require('../ParseGeoPoint'); +const ParsePolygon = require('../ParsePolygon'); +const ParseUser = require('../ParseUser'); describe('OfflineQuery', () => { it('matches blank queries', () => { diff --git a/src/__tests__/ParseACL-test.js b/src/__tests__/ParseACL-test.js index c5cc6cc71..93d5d9232 100644 --- a/src/__tests__/ParseACL-test.js +++ b/src/__tests__/ParseACL-test.js @@ -8,8 +8,8 @@ mockRole.prototype.getName = function () { }; jest.setMock('../ParseRole', mockRole); -const ParseACL = require('../ParseACL').default; -const ParseUser = require('../ParseUser').default; +const ParseACL = require('../ParseACL'); +const ParseUser = require('../ParseUser'); const ParseRole = require('../ParseRole'); describe('ParseACL', () => { diff --git a/src/__tests__/ParseCLP-test.js b/src/__tests__/ParseCLP-test.js index 51b9c98b1..c0571694f 100644 --- a/src/__tests__/ParseCLP-test.js +++ b/src/__tests__/ParseCLP-test.js @@ -10,8 +10,8 @@ mockRole.prototype.getName = function () { jest.setMock('../ParseRole', mockRole); -const ParseCLP = require('../ParseCLP').default; -const ParseUser = require('../ParseUser').default; +const ParseCLP = require('../ParseCLP'); +const ParseUser = require('../ParseUser'); const ParseRole = require('../ParseRole'); function generateReadCLP(key) { diff --git a/src/__tests__/ParseConfig-test.js b/src/__tests__/ParseConfig-test.js index a3aa5546b..ea93354f1 100644 --- a/src/__tests__/ParseConfig-test.js +++ b/src/__tests__/ParseConfig-test.js @@ -13,8 +13,8 @@ jest.dontMock('./test_helpers/mockAsyncStorage'); const mockAsyncStorage = require('./test_helpers/mockAsyncStorage'); const CoreManager = require('../CoreManager'); -const ParseConfig = require('../ParseConfig').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; +const ParseConfig = require('../ParseConfig'); +const ParseGeoPoint = require('../ParseGeoPoint'); const Storage = require('../Storage'); CoreManager.set('APPLICATION_ID', 'A'); diff --git a/src/__tests__/ParseError-test.js b/src/__tests__/ParseError-test.js index 5bbb5f81c..f36f0a8f7 100644 --- a/src/__tests__/ParseError-test.js +++ b/src/__tests__/ParseError-test.js @@ -1,7 +1,7 @@ jest.dontMock('../ParseError'); jest.dontMock('../CoreManager'); -const ParseError = require('../ParseError').default; +const ParseError = require('../ParseError'); const CoreManager = require('../CoreManager'); describe('ParseError', () => { diff --git a/src/__tests__/ParseFile-test.js b/src/__tests__/ParseFile-test.js index c5d9e7465..424980356 100644 --- a/src/__tests__/ParseFile-test.js +++ b/src/__tests__/ParseFile-test.js @@ -4,11 +4,11 @@ jest.mock('http'); jest.mock('https'); jest.mock('../ParseACL'); -const ParseError = require('../ParseError').default; -const ParseFile = require('../ParseFile').default; +const ParseError = require('../ParseError'); +const ParseFile = require('../ParseFile'); const b64Digit = require('../ParseFile').b64Digit; -const ParseObject = require('../ParseObject').default; +const ParseObject = require('../ParseObject'); const CoreManager = require('../CoreManager'); const EventEmitter = require('../EventEmitter'); diff --git a/src/__tests__/ParseGeoPoint-test.js b/src/__tests__/ParseGeoPoint-test.js index 49c1424ed..dcfda4150 100644 --- a/src/__tests__/ParseGeoPoint-test.js +++ b/src/__tests__/ParseGeoPoint-test.js @@ -1,6 +1,6 @@ jest.autoMockOff(); -const ParseGeoPoint = require('../ParseGeoPoint').default; +const ParseGeoPoint = require('../ParseGeoPoint'); global.navigator.geolocation = { getCurrentPosition: cb => { return cb({ diff --git a/src/__tests__/ParseInstallation-test.js b/src/__tests__/ParseInstallation-test.js index 20c01d007..64754c156 100644 --- a/src/__tests__/ParseInstallation-test.js +++ b/src/__tests__/ParseInstallation-test.js @@ -8,7 +8,7 @@ jest.dontMock('../ParseInstallation'); jest.dontMock('../SingleInstanceStateController'); jest.dontMock('../UniqueInstanceStateController'); -const ParseInstallation = require('../ParseInstallation').default; +const ParseInstallation = require('../ParseInstallation'); describe('ParseInstallation', () => { it('can create ParseInstallation', () => { diff --git a/src/__tests__/ParseLiveQuery-test.js b/src/__tests__/ParseLiveQuery-test.js index ae105f1ef..1d0a8d3d8 100644 --- a/src/__tests__/ParseLiveQuery-test.js +++ b/src/__tests__/ParseLiveQuery-test.js @@ -9,11 +9,11 @@ jest.dontMock('../EventEmitter'); jest.dontMock('../promiseUtils'); // Forces the loading -const ParseLiveQuery = require('../ParseLiveQuery').default; +const ParseLiveQuery = require('../ParseLiveQuery'); const CoreManager = require('../CoreManager'); const EventEmitter = require('../EventEmitter'); -const ParseQuery = require('../ParseQuery').default; -const LiveQuerySubscription = require('../LiveQuerySubscription').default; +const ParseQuery = require('../ParseQuery'); +const LiveQuerySubscription = require('../LiveQuerySubscription'); const mockLiveQueryClient = { open: jest.fn(), close: jest.fn(), diff --git a/src/__tests__/ParseObject-test.js b/src/__tests__/ParseObject-test.js index c67c4a3e1..98bc29f28 100644 --- a/src/__tests__/ParseObject-test.js +++ b/src/__tests__/ParseObject-test.js @@ -144,16 +144,16 @@ jest.setMock('../LocalDatastore', mockLocalDatastore); const CoreManager = require('../CoreManager'); const EventuallyQueue = require('../EventuallyQueue'); -const ParseACL = require('../ParseACL').default; -const ParseError = require('../ParseError').default; -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; -const ParsePolygon = require('../ParsePolygon').default; -const ParseObject = require('../ParseObject').default; +const ParseACL = require('../ParseACL'); +const ParseError = require('../ParseError'); +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); +const ParsePolygon = require('../ParsePolygon'); +const ParseObject = require('../ParseObject'); const ParseOp = require('../ParseOp'); const RESTController = require('../RESTController'); const SingleInstanceStateController = require('../SingleInstanceStateController'); -const unsavedChildren = require('../unsavedChildren').default; +const unsavedChildren = require('../unsavedChildren'); const mockXHR = require('./test_helpers/mockXHR'); const flushPromises = require('./test_helpers/flushPromises'); diff --git a/src/__tests__/ParsePolygon-test.js b/src/__tests__/ParsePolygon-test.js index ef500c0e7..8abd83338 100644 --- a/src/__tests__/ParsePolygon-test.js +++ b/src/__tests__/ParsePolygon-test.js @@ -1,7 +1,7 @@ jest.autoMockOff(); -const ParseGeoPoint = require('../ParseGeoPoint').default; -const ParsePolygon = require('../ParsePolygon').default; +const ParseGeoPoint = require('../ParseGeoPoint'); +const ParsePolygon = require('../ParsePolygon'); const points = [ [0, 0], diff --git a/src/__tests__/ParseQuery-test.js b/src/__tests__/ParseQuery-test.js index 7aef3d28d..ff05ee24c 100644 --- a/src/__tests__/ParseQuery-test.js +++ b/src/__tests__/ParseQuery-test.js @@ -42,11 +42,11 @@ jest.setMock('../LocalDatastore', mockLocalDatastore); let CoreManager = require('../CoreManager'); const EventEmitter = require('../EventEmitter'); -const ParseError = require('../ParseError').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; +const ParseError = require('../ParseError'); +const ParseGeoPoint = require('../ParseGeoPoint'); let ParseObject = require('../ParseObject'); -let ParseQuery = require('../ParseQuery').default; -const LiveQuerySubscription = require('../LiveQuerySubscription').default; +let ParseQuery = require('../ParseQuery'); +const LiveQuerySubscription = require('../LiveQuerySubscription'); const MockRESTController = { request: jest.fn(), @@ -2288,9 +2288,9 @@ describe('ParseQuery', () => { it('overrides cached object with query results', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); @@ -2338,9 +2338,9 @@ describe('ParseQuery', () => { it('does not override unselected fields with select query results', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); @@ -2413,9 +2413,9 @@ describe('ParseQuery', () => { it('overrides cached object with first() results', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); @@ -2463,9 +2463,9 @@ describe('ParseQuery', () => { it('does not override unselected fields for first() on select query', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); @@ -2878,9 +2878,9 @@ describe('ParseQuery', () => { it('selecting sub-objects does not inject objects when sub-object does not exist', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); @@ -2925,9 +2925,9 @@ describe('ParseQuery', () => { it('removes missing sub objects from the cached object when they are selected', done => { jest.dontMock('../ParseObject'); jest.resetModules(); - ParseObject = require('../ParseObject').default; + ParseObject = require('../ParseObject'); CoreManager = require('../CoreManager'); - ParseQuery = require('../ParseQuery').default; + ParseQuery = require('../ParseQuery'); ParseObject.enableSingleInstance(); diff --git a/src/__tests__/ParseRelation-test.js b/src/__tests__/ParseRelation-test.js index 47fbd8aaa..ce134b916 100644 --- a/src/__tests__/ParseRelation-test.js +++ b/src/__tests__/ParseRelation-test.js @@ -55,7 +55,7 @@ mockQuery.prototype = { jest.setMock('../ParseQuery', mockQuery); const ParseObject = require('../ParseObject'); -const ParseRelation = require('../ParseRelation').default; +const ParseRelation = require('../ParseRelation'); describe('ParseRelation', () => { it('can be constructed with a reference parent and key', () => { diff --git a/src/__tests__/ParseRole-test.js b/src/__tests__/ParseRole-test.js index 9844e4373..f99b692bf 100644 --- a/src/__tests__/ParseRole-test.js +++ b/src/__tests__/ParseRole-test.js @@ -8,11 +8,11 @@ jest.dontMock('../ParseRole'); jest.dontMock('../SingleInstanceStateController'); jest.dontMock('../UniqueInstanceStateController'); -const ParseACL = require('../ParseACL').default; -const ParseError = require('../ParseError').default; -const ParseObject = require('../ParseObject').default; -const ParseRelation = require('../ParseRelation').default; -const ParseRole = require('../ParseRole').default; +const ParseACL = require('../ParseACL'); +const ParseError = require('../ParseError'); +const ParseObject = require('../ParseObject'); +const ParseRelation = require('../ParseRelation'); +const ParseRole = require('../ParseRole'); describe('ParseRole', () => { beforeEach(() => { diff --git a/src/__tests__/ParseSchema-test.js b/src/__tests__/ParseSchema-test.js index 5f3754cc1..0f4bb2b07 100644 --- a/src/__tests__/ParseSchema-test.js +++ b/src/__tests__/ParseSchema-test.js @@ -23,7 +23,7 @@ jest.setMock('../ParseCLP', mockCLP); const ParseObject = require('../ParseObject'); const ParseCLP = require('../ParseCLP'); -const ParseSchema = require('../ParseSchema').default; +const ParseSchema = require('../ParseSchema'); const CoreManager = require('../CoreManager'); const defaultController = CoreManager.getSchemaController(); diff --git a/src/__tests__/ParseSession-test.js b/src/__tests__/ParseSession-test.js index 94f8e1bd0..acfb7b607 100644 --- a/src/__tests__/ParseSession-test.js +++ b/src/__tests__/ParseSession-test.js @@ -29,8 +29,8 @@ mockUser.current = function () { jest.setMock('../ParseUser', mockUser); const CoreManager = require('../CoreManager'); -const ParseObject = require('../ParseObject').default; -const ParseSession = require('../ParseSession').default; +const ParseObject = require('../ParseObject'); +const ParseSession = require('../ParseSession'); CoreManager.set('APPLICATION_ID', 'A'); CoreManager.set('JAVASCRIPT_KEY', 'B'); diff --git a/src/__tests__/ParseUser-test.js b/src/__tests__/ParseUser-test.js index 631842b8e..78ae3cdc7 100644 --- a/src/__tests__/ParseUser-test.js +++ b/src/__tests__/ParseUser-test.js @@ -35,11 +35,11 @@ const mockAsyncStorage = require('./test_helpers/mockAsyncStorage'); const CoreManager = require('../CoreManager'); const CryptoController = require('../CryptoController'); const LocalDatastore = require('../LocalDatastore'); -const ParseObject = require('../ParseObject').default; -const ParseUser = require('../ParseUser').default; +const ParseObject = require('../ParseObject'); +const ParseUser = require('../ParseUser'); const Storage = require('../Storage'); -const ParseError = require('../ParseError').default; -const AnonymousUtils = require('../AnonymousUtils').default; +const ParseError = require('../ParseError'); +const AnonymousUtils = require('../AnonymousUtils'); CoreManager.set('APPLICATION_ID', 'A'); CoreManager.set('JAVASCRIPT_KEY', 'B'); diff --git a/src/__tests__/SingleInstanceStateController-test.js b/src/__tests__/SingleInstanceStateController-test.js index 5feea909f..69d8ecef1 100644 --- a/src/__tests__/SingleInstanceStateController-test.js +++ b/src/__tests__/SingleInstanceStateController-test.js @@ -14,8 +14,8 @@ mockObject.registerSubclass = function () {}; jest.setMock('../ParseObject', mockObject); jest.useFakeTimers(); -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); const ParseOps = require('../ParseOp'); const SingleInstanceStateController = require('../SingleInstanceStateController'); const TaskQueue = require('../TaskQueue'); diff --git a/src/__tests__/UniqueInstanceStateController-test.js b/src/__tests__/UniqueInstanceStateController-test.js index 7a84a2f6f..3db289560 100644 --- a/src/__tests__/UniqueInstanceStateController-test.js +++ b/src/__tests__/UniqueInstanceStateController-test.js @@ -15,8 +15,8 @@ const mockObject = function (className) { mockObject.registerSubclass = function () {}; jest.setMock('../ParseObject', mockObject); -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); const ParseObject = require('../ParseObject'); const ParseOps = require('../ParseOp'); const UniqueInstanceStateController = require('../UniqueInstanceStateController'); diff --git a/src/__tests__/arrayContainsObject-test.js b/src/__tests__/arrayContainsObject-test.js index d36503283..a1ae410d3 100644 --- a/src/__tests__/arrayContainsObject-test.js +++ b/src/__tests__/arrayContainsObject-test.js @@ -13,7 +13,7 @@ mockObject.prototype._getId = function () { }; jest.setMock('../ParseObject', mockObject); -const arrayContainsObject = require('../arrayContainsObject').default; +const arrayContainsObject = require('../arrayContainsObject'); const ParseObject = require('../ParseObject'); describe('arrayContainsObject', () => { diff --git a/src/__tests__/browser-test.js b/src/__tests__/browser-test.js index e89714204..463c5cb77 100644 --- a/src/__tests__/browser-test.js +++ b/src/__tests__/browser-test.js @@ -10,7 +10,7 @@ jest.dontMock('../Storage'); jest.dontMock('crypto-js/aes'); jest.setMock('../EventuallyQueue', { poll: jest.fn() }); -const ParseError = require('../ParseError').default; +const ParseError = require('../ParseError'); const EventuallyQueue = require('../EventuallyQueue'); class XMLHttpRequest {} diff --git a/src/__tests__/canBeSerialized-test.js b/src/__tests__/canBeSerialized-test.js index 24cedf7e3..23565c6c6 100644 --- a/src/__tests__/canBeSerialized-test.js +++ b/src/__tests__/canBeSerialized-test.js @@ -15,10 +15,10 @@ mockFile.prototype.url = function () { }; jest.setMock('../ParseFile', mockFile); -const canBeSerialized = require('../canBeSerialized').default; +const canBeSerialized = require('../canBeSerialized'); const ParseFile = require('../ParseFile'); const ParseObject = require('../ParseObject'); -const ParseRelation = require('../ParseRelation').default; +const ParseRelation = require('../ParseRelation'); describe('canBeSerialized', () => { it('returns true for anything that is not a ParseObject', () => { diff --git a/src/__tests__/decode-test.js b/src/__tests__/decode-test.js index 854996e5f..56797b382 100644 --- a/src/__tests__/decode-test.js +++ b/src/__tests__/decode-test.js @@ -3,12 +3,12 @@ jest.dontMock('../ParseFile'); jest.dontMock('../ParseGeoPoint'); jest.dontMock('../ParsePolygon'); -const decode = require('../decode').default; +const decode = require('../decode'); -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; -const ParseObject = require('../ParseObject').default; -const ParsePolygon = require('../ParsePolygon').default; +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); +const ParseObject = require('../ParseObject'); +const ParsePolygon = require('../ParsePolygon'); describe('decode', () => { it('ignores primitives', () => { diff --git a/src/__tests__/encode-test.js b/src/__tests__/encode-test.js index ff9244c59..a82d78077 100644 --- a/src/__tests__/encode-test.js +++ b/src/__tests__/encode-test.js @@ -37,12 +37,12 @@ mockObject.prototype = { }; jest.setMock('../ParseObject', mockObject); -const encode = require('../encode').default; -const ParseACL = require('../ParseACL').default; -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; +const encode = require('../encode'); +const ParseACL = require('../ParseACL'); +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); const ParseObject = require('../ParseObject'); -const ParseRelation = require('../ParseRelation').default; +const ParseRelation = require('../ParseRelation'); describe('encode', () => { it('ignores primitives', () => { diff --git a/src/__tests__/equals-test.js b/src/__tests__/equals-test.js index bec122f05..8c9b05c2d 100644 --- a/src/__tests__/equals-test.js +++ b/src/__tests__/equals-test.js @@ -1,10 +1,10 @@ jest.autoMockOff(); -const equals = require('../equals').default; -const ParseACL = require('../ParseACL').default; -const ParseFile = require('../ParseFile').default; -const ParseGeoPoint = require('../ParseGeoPoint').default; -const ParseObject = require('../ParseObject').default; +const equals = require('../equals'); +const ParseACL = require('../ParseACL'); +const ParseFile = require('../ParseFile'); +const ParseGeoPoint = require('../ParseGeoPoint'); +const ParseObject = require('../ParseObject'); describe('equals', () => { it('tests equality of primitives', () => { diff --git a/src/__tests__/escape-test.js b/src/__tests__/escape-test.js index 11e6e07af..836b22c5e 100644 --- a/src/__tests__/escape-test.js +++ b/src/__tests__/escape-test.js @@ -1,6 +1,6 @@ jest.autoMockOff(); -const escape = require('../escape.js').default; +const escape = require('../escape'); describe('escape', () => { it('escapes special HTML characters', () => { diff --git a/src/__tests__/parseDate-test.js b/src/__tests__/parseDate-test.js index 41040904a..971649214 100644 --- a/src/__tests__/parseDate-test.js +++ b/src/__tests__/parseDate-test.js @@ -1,6 +1,6 @@ jest.autoMockOff(); -const parseDate = require('../parseDate').default; +const parseDate = require('../parseDate'); describe('parseDate', () => { it('returns a Date for valid strings', () => { diff --git a/src/__tests__/unique-test.js b/src/__tests__/unique-test.js index edae1a8f1..c321e7379 100644 --- a/src/__tests__/unique-test.js +++ b/src/__tests__/unique-test.js @@ -14,7 +14,7 @@ mockObject.prototype._getId = function () { }; jest.setMock('../ParseObject', mockObject); -const unique = require('../unique').default; +const unique = require('../unique'); const ParseObject = require('../ParseObject'); describe('unique', () => { diff --git a/src/__tests__/unsavedChildren-test.js b/src/__tests__/unsavedChildren-test.js index df5771f9b..8b58679b4 100644 --- a/src/__tests__/unsavedChildren-test.js +++ b/src/__tests__/unsavedChildren-test.js @@ -19,10 +19,10 @@ mockObject.prototype = { }; jest.setMock('../ParseObject', mockObject); -const ParseFile = require('../ParseFile').default; +const ParseFile = require('../ParseFile'); const ParseObject = require('../ParseObject'); -const ParseRelation = require('../ParseRelation').default; -const unsavedChildren = require('../unsavedChildren').default; +const ParseRelation = require('../ParseRelation'); +const unsavedChildren = require('../unsavedChildren'); describe('unsavedChildren', () => { it('finds unsaved files', () => { diff --git a/src/arrayContainsObject.ts b/src/arrayContainsObject.ts index 9682cf108..7018ad975 100644 --- a/src/arrayContainsObject.ts +++ b/src/arrayContainsObject.ts @@ -15,3 +15,4 @@ export default function arrayContainsObject(array: Array, object: ParseObje } return false; } +module.exports = arrayContainsObject; diff --git a/src/canBeSerialized.ts b/src/canBeSerialized.ts index 975b1672d..9505461af 100644 --- a/src/canBeSerialized.ts +++ b/src/canBeSerialized.ts @@ -51,3 +51,4 @@ function canBeSerializedHelper(value: any): boolean { } return true; } +module.exports = canBeSerialized; diff --git a/src/decode.ts b/src/decode.ts index 4e4a6cfbe..0757dbab5 100644 --- a/src/decode.ts +++ b/src/decode.ts @@ -57,3 +57,4 @@ export default function decode(value: any): any { } return copy; } +module.exports = decode; \ No newline at end of file diff --git a/src/encode.ts b/src/encode.ts index 86148e8a4..516323634 100644 --- a/src/encode.ts +++ b/src/encode.ts @@ -84,7 +84,7 @@ function encode( } /** Encodes values to storage type */ -export default function ( +export default function encodeValues ( value: any, disallowObjects?: boolean, forcePointers?: boolean, @@ -93,3 +93,4 @@ export default function ( ): any { return encode(value, !!disallowObjects, !!forcePointers, seen || [], offline); } +module.exports = encodeValues; \ No newline at end of file diff --git a/src/equals.ts b/src/equals.ts index 234141519..9c463ed4d 100644 --- a/src/equals.ts +++ b/src/equals.ts @@ -58,3 +58,4 @@ export default function equals(a: any, b: any): boolean { } return true; } +module.exports = equals; \ No newline at end of file diff --git a/src/escape.ts b/src/escape.ts index e4b101aee..102bdf682 100644 --- a/src/escape.ts +++ b/src/escape.ts @@ -16,3 +16,4 @@ export default function escape(str: string): string { return encoded[char]; }); } +module.exports = escape; \ No newline at end of file diff --git a/src/isRevocableSession.ts b/src/isRevocableSession.ts index 5da2de5fb..6c50d96dc 100644 --- a/src/isRevocableSession.ts +++ b/src/isRevocableSession.ts @@ -5,3 +5,4 @@ export default function isRevocableSession(token: string): boolean { return token.indexOf('r:') > -1; } +module.exports = isRevocableSession; \ No newline at end of file diff --git a/src/parseDate.ts b/src/parseDate.ts index 8de789d67..881026b76 100644 --- a/src/parseDate.ts +++ b/src/parseDate.ts @@ -25,3 +25,4 @@ export default function parseDate(iso8601: string): Date | null { return new Date(Date.UTC(year, month, day, hour, minute, second, milli)); } +module.exports = parseDate; \ No newline at end of file diff --git a/src/promiseUtils.ts b/src/promiseUtils.ts index aa3d2d153..6a1f55bcf 100644 --- a/src/promiseUtils.ts +++ b/src/promiseUtils.ts @@ -12,13 +12,14 @@ export function resolvingPromise() { return ret; } -export function when(promises: Promise | Promise[]) { +export function when(promises: Promise | (Promise[])) { let objects: Promise[]; const arrayArgument = Array.isArray(promises); if (arrayArgument) { objects = promises; } else { - objects = [promises]; + // TODO: Why do we need *this* to make it work? + objects = arguments as any as Promise[]; } let total = objects.length; diff --git a/src/unique.ts b/src/unique.ts index 1ee8f2cb1..e68d57cc6 100644 --- a/src/unique.ts +++ b/src/unique.ts @@ -20,3 +20,4 @@ export default function unique(arr: Array): Array { }); return uniques; } +module.exports = unique; \ No newline at end of file diff --git a/src/unsavedChildren.ts b/src/unsavedChildren.ts index 9a55c722e..a1c5f9725 100644 --- a/src/unsavedChildren.ts +++ b/src/unsavedChildren.ts @@ -43,7 +43,7 @@ export default function unsavedChildren( } return unsaved.concat(encountered.files); } - +module.exports = unsavedChildren; function traverse( obj: ParseObject | ParseFile | ParseRelation | Array, encountered: EncounterMap,