react-native-mosquito-transport 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,6 +13,7 @@ or using yarn
13
13
  ```sh
14
14
  yarn add react-native-mosquito-transport
15
15
  ```
16
+ internal bson
16
17
 
17
18
  ## Usage
18
19
 
package/TODO CHANGED
@@ -20,4 +20,5 @@
20
20
  - lodashes ✅
21
21
  - switch to events package
22
22
  - serverTimeOffset
23
+ - avoid sending cookies
23
24
  <!-- - error: "refreshToken retry limit exceeded" <--- no need -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mosquito-transport",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "React native javascript sdk for mosquito-transport (https://github.com/brainbehindx/mosquito-transport)",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -7,7 +7,7 @@ import setLodash from 'lodash/set';
7
7
  import unsetLodash from 'lodash/unset';
8
8
  import { DatabaseRecordsListener } from "../../helpers/listeners";
9
9
  import cloneDeep from "lodash/cloneDeep";
10
- import { BSONRegExp, ObjectId, Timestamp } from "bson";
10
+ import { BSONRegExp, ObjectId, Timestamp } from "bson/lib/bson.rn.cjs";
11
11
  import { niceGuard, Validator } from "guard-object";
12
12
  import { TIMESTAMP } from "../..";
13
13
  import { docSize, incrementDatabaseSize } from "./counter";
@@ -1,4 +1,4 @@
1
- import { deserialize, serialize } from "bson";
1
+ import { deserialize, serialize } from "bson/lib/bson.rn.cjs";
2
2
  import { Buffer } from "buffer";
3
3
 
4
4
  export const deserializeBSON = (data, cast) => {
@@ -8,7 +8,7 @@ import { addPendingWrites, generateRecordID, getCountQuery, getRecord, insertCou
8
8
  import { validateCollectionName, validateFilter, validateFindConfig, validateFindObject, validateListenFindConfig } from "./validator";
9
9
  import { awaitRefreshToken, listenToken } from "../auth/accessor";
10
10
  import { DELIVERY, RETRIEVAL } from "../../helpers/values";
11
- import { ObjectId } from "bson";
11
+ import { ObjectId } from "bson/lib/bson.rn.cjs";
12
12
  import { guardObject, Validator } from "guard-object";
13
13
  import { simplifyCaughtError } from "simplify-error";
14
14
  import cloneDeep from "lodash/cloneDeep";
@@ -2,7 +2,7 @@ import { guardArray, GuardError, guardObject, GuardSignal, niceGuard, Validator
2
2
  import { sameInstance } from "../../helpers/peripherals";
3
3
  import { RETRIEVAL } from "../../helpers/values";
4
4
  import getLodash from 'lodash/get';
5
- import { Binary, BSONRegExp, BSONSymbol, Code, DBRef, Decimal128, Double, Int32, Long, MaxKey, MinKey, ObjectId, Timestamp, UUID } from 'bson';
5
+ import { Binary, BSONRegExp, BSONSymbol, Code, DBRef, Decimal128, Double, Int32, Long, MaxKey, MinKey, ObjectId, Timestamp, UUID } from 'bson/lib/bson.rn.cjs';
6
6
  import { bboxPolygon, booleanIntersects, booleanWithin, circle, distance, polygon } from "@turf/turf";
7
7
 
8
8
  const DirectionList = [1, -1, 'asc', 'desc', 'ascending', 'descending'];