@livestore/devtools-expo 0.3.2-dev.0 → 0.3.2-dev.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.cjs","sourceRoot":"","sources":["../src/metro-config.cts"],"names":[],"mappings":";;AAAA,uJAAuJ;AACvJ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"metro-config.cjs","sourceRoot":"","sources":["../src/metro-config.cts"],"names":[],"mappings":";;AAAA,uJAAuJ;AACvJ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAChC,OAAO,CAAC,yBAAyB,CAE9B,CAAA;AAEL,uJAAuJ;AACvJ,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAErD,CAAA;AAMH;;GAEG;AACH,MAAM,8BAA8B,GAAG,CAAC,MAAgC,EAAE,OAAgB,EAAE,EAAE;IAC5F,kCAAkC;IAClC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC5C,OAAM;IACR,CAAC;IACD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,SAAS,CAAA,CAAC,+DAA+D;IACtG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAA;IAEjC,qCAAqC;IACrC,OAAO,CAAC,GAAG,CAAC,kCAAkC,GAAG,QAAQ,IAAI,IAAI,IAAI,EAAE,CAAA;IAEvE,MAAM,CAAC,kCAAkC,CAAC;SACvC,IAAI,CAAC,KAAK,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE;QACtC,mBAAmB,CAAC;YAClB,iBAAiB,EAAE,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,IAAI;YACJ,IAAI;SACL,CA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GAAG,EAAE,IAAI,EAAE,EAAE,CACxB,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,aAAa,CAAC;YAChC,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;YACxE,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC,CAAA;IAED,MAAM,CAAC,MAAM,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;AACrD,CAAC,CAAA;AAOD,iDAAiD;AACjD,MAAM,CAAC,OAAO,GAAG;IACf,8BAA8B;CAC/B,CAAA"}
|
package/dist/metro-config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetroConfig } from 'expo/metro-config';
|
|
2
|
-
import type { Options } from './types.
|
|
2
|
+
import type { Options } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Patches the Metro config to add a middleware via `config.server.enhanceMiddleware`.
|
|
5
5
|
*/
|
|
@@ -9,5 +9,5 @@ type MutableDeep<T> = {
|
|
|
9
9
|
-readonly [P in keyof T]: MutableDeep<T[P]>;
|
|
10
10
|
};
|
|
11
11
|
export type { addLiveStoreDevtoolsMiddleware };
|
|
12
|
-
export type { Options } from './types.
|
|
12
|
+
export type { Options } from './types.ts';
|
|
13
13
|
//# sourceMappingURL=metro-config.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.d.cts","sourceRoot":"","sources":["../src/metro-config.cts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metro-config.d.cts","sourceRoot":"","sources":["../src/metro-config.cts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,KAAK,EAAc,OAAO,EAAE,MAAM,YAAY,CAAA;AAErD;;GAEG;AACH,QAAA,MAAM,8BAA8B,GAAI,QAAQ,WAAW,CAAC,WAAW,CAAC,EAAE,SAAS,OAAO,SA0DzF,CAAA;AAED,0CAA0C;AAC1C,KAAK,WAAW,CAAC,CAAC,IAAI;IACpB,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5C,CAAA;AAOD,YAAY,EAAE,8BAA8B,EAAE,CAAA;AAC9C,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/devtools-expo",
|
|
3
|
-
"version": "0.3.2-dev.
|
|
3
|
+
"version": "0.3.2-dev.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"types": "./dist/index.d.cts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@livestore/adapter-node": "0.3.2-dev.
|
|
8
|
-
"@livestore/utils": "0.3.2-dev.
|
|
7
|
+
"@livestore/adapter-node": "0.3.2-dev.5",
|
|
8
|
+
"@livestore/utils": "0.3.2-dev.5"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@types/node": "
|
|
11
|
+
"@types/node": "22.15.33",
|
|
12
12
|
"expo": "^53.0.9",
|
|
13
13
|
"vite": "^7.0.0"
|
|
14
14
|
},
|
package/src/metro-config.cts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-require-imports, unicorn/prefer-module, @typescript-eslint/consistent-type-imports, prettier/prettier
|
|
2
|
-
const { Effect, Logger, LogLevel } =
|
|
2
|
+
const { Effect, Logger, LogLevel } =
|
|
3
|
+
require('@livestore/utils/effect') as typeof import('@livestore/utils/effect', { with: {
|
|
4
|
+
'resolution-mode': 'import',
|
|
5
|
+
}})
|
|
3
6
|
|
|
4
7
|
// eslint-disable-next-line @typescript-eslint/no-require-imports, unicorn/prefer-module, @typescript-eslint/consistent-type-imports, prettier/prettier
|
|
5
|
-
const { PlatformNode } = require('@livestore/utils/node') as typeof import('@livestore/utils/node', { with: {
|
|
8
|
+
const { PlatformNode } = require('@livestore/utils/node') as typeof import('@livestore/utils/node', { with: {
|
|
9
|
+
'resolution-mode': 'import',
|
|
10
|
+
}})
|
|
6
11
|
|
|
7
12
|
import type { MetroConfig } from 'expo/metro-config'
|
|
8
13
|
|
|
9
|
-
import type { Middleware, Options } from './types.
|
|
14
|
+
import type { Middleware, Options } from './types.ts'
|
|
10
15
|
|
|
11
16
|
/**
|
|
12
17
|
* Patches the Metro config to add a middleware via `config.server.enhanceMiddleware`.
|
|
@@ -82,4 +87,4 @@ module.exports = {
|
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
export type { addLiveStoreDevtoolsMiddleware }
|
|
85
|
-
export type { Options } from './types.
|
|
90
|
+
export type { Options } from './types.ts'
|
package/src/types.d.ts
CHANGED
|
@@ -11,8 +11,12 @@ export type Options = {
|
|
|
11
11
|
* File path must be relative to the project root and will be imported via Vite.
|
|
12
12
|
*
|
|
13
13
|
* Example: `./src/schema.ts`
|
|
14
|
+
*
|
|
15
|
+
* If your app uses multiple schemas, you can provide an array of schema paths.
|
|
16
|
+
*
|
|
17
|
+
* Example: `[./src/schema.ts, ./src/schema2.ts]`
|
|
14
18
|
*/
|
|
15
|
-
schemaPath: string
|
|
19
|
+
schemaPath: string | ReadonlyArray<string>
|
|
16
20
|
/**
|
|
17
21
|
* The port to listen on for the devtools server
|
|
18
22
|
*
|