@tanstack/solid-devtools 0.4.0 → 0.4.2
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/dist/cjs/index.cjs +5 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -5
- package/dist/cjs/production.cjs +6 -0
- package/dist/cjs/production.cjs.map +1 -0
- package/dist/cjs/production.d.cts +3 -0
- package/dist/esm/index.d.ts +2 -5
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/production.d.ts +3 -0
- package/dist/esm/production.js +6 -0
- package/dist/esm/production.js.map +1 -0
- package/package.json +12 -2
- package/src/index.ts +8 -6
- package/src/production.ts +6 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const web = require("solid-js/web");
|
|
4
4
|
const devtools = require("./devtools.cjs");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
get: () => devtools$1[k]
|
|
10
|
-
});
|
|
11
|
-
});
|
|
5
|
+
const TanStackDevtools = web.isDev ? devtools.TanStackDevtools : function() {
|
|
6
|
+
return null;
|
|
7
|
+
};
|
|
8
|
+
exports.TanStackDevtools = TanStackDevtools;
|
|
12
9
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import { isDev } from 'solid-js/web'\nimport * as Devtools from './devtools'\n\nexport const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = isDev\n ? Devtools.TanStackDevtools\n : function () {\n return null\n }\n\nexport type { TanStackDevtoolsSolidPlugin } from './core'\n"],"names":["isDev","Devtools.TanStackDevtools"],"mappings":";;;;AAGO,MAAM,mBAA0DA,IAAAA,QACnEC,SAAAA,mBACA,WAAY;AACV,SAAO;AACT;;"}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Export every hook individually - DON'T export from barrel files
|
|
4
|
-
*/
|
|
5
|
-
export { TanStackDevtools } from './devtools.cjs';
|
|
1
|
+
import * as Devtools from './devtools.cjs';
|
|
2
|
+
export declare const TanStackDevtools: (typeof Devtools)['TanStackDevtools'];
|
|
6
3
|
export type { TanStackDevtoolsSolidPlugin } from './core.cjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const devtools = require("./devtools.cjs");
|
|
4
|
+
const TanStackDevtools = devtools.TanStackDevtools;
|
|
5
|
+
exports.TanStackDevtools = TanStackDevtools;
|
|
6
|
+
//# sourceMappingURL=production.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.cjs","sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './devtools'\n\nexport const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] =\n Devtools.TanStackDevtools\n\nexport type { TanStackDevtoolsSolidPlugin } from './core'\n"],"names":["Devtools.TanStackDevtools"],"mappings":";;;AAEO,MAAM,mBACXA,SAAAA;;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Export every hook individually - DON'T export from barrel files
|
|
4
|
-
*/
|
|
5
|
-
export { TanStackDevtools } from './devtools.js';
|
|
1
|
+
import * as Devtools from './devtools.js';
|
|
2
|
+
export declare const TanStackDevtools: (typeof Devtools)['TanStackDevtools'];
|
|
6
3
|
export type { TanStackDevtoolsSolidPlugin } from './core.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { TanStackDevtools } from "./devtools.js";
|
|
1
|
+
import { isDev } from "solid-js/web";
|
|
2
|
+
import { TanStackDevtools as TanStackDevtools$1 } from "./devtools.js";
|
|
3
|
+
const TanStackDevtools = isDev ? TanStackDevtools$1 : function() {
|
|
4
|
+
return null;
|
|
5
|
+
};
|
|
3
6
|
export {
|
|
4
7
|
TanStackDevtools
|
|
5
8
|
};
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { isDev } from 'solid-js/web'\nimport * as Devtools from './devtools'\n\nexport const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = isDev\n ? Devtools.TanStackDevtools\n : function () {\n return null\n }\n\nexport type { TanStackDevtoolsSolidPlugin } from './core'\n"],"names":["Devtools.TanStackDevtools"],"mappings":";;AAGO,MAAM,mBAA0D,QACnEA,qBACA,WAAY;AACV,SAAO;AACT;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.js","sources":["../../src/production.ts"],"sourcesContent":["import * as Devtools from './devtools'\n\nexport const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] =\n Devtools.TanStackDevtools\n\nexport type { TanStackDevtoolsSolidPlugin } from './core'\n"],"names":["Devtools.TanStackDevtools"],"mappings":";AAEO,MAAM,mBACXA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-devtools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "TanStack Devtools is a set of tools for building advanced devtools for your Solid application.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,16 @@
|
|
|
33
33
|
"default": "./dist/cjs/index.cjs"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
"./production": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/esm/production.d.ts",
|
|
39
|
+
"default": "./dist/esm/production.js"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/cjs/production.d.cts",
|
|
43
|
+
"default": "./dist/cjs/production.cjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
36
46
|
"./package.json": "./package.json"
|
|
37
47
|
},
|
|
38
48
|
"sideEffects": false,
|
|
@@ -44,7 +54,7 @@
|
|
|
44
54
|
"src"
|
|
45
55
|
],
|
|
46
56
|
"dependencies": {
|
|
47
|
-
"@tanstack/devtools": "0.4.
|
|
57
|
+
"@tanstack/devtools": "0.4.1"
|
|
48
58
|
},
|
|
49
59
|
"devDependencies": {
|
|
50
60
|
"solid-js": "^1.9.7",
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isDev } from 'solid-js/web'
|
|
2
|
+
import * as Devtools from './devtools'
|
|
3
|
+
|
|
4
|
+
export const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = isDev
|
|
5
|
+
? Devtools.TanStackDevtools
|
|
6
|
+
: function () {
|
|
7
|
+
return null
|
|
8
|
+
}
|
|
6
9
|
|
|
7
|
-
export { TanStackDevtools } from './devtools'
|
|
8
10
|
export type { TanStackDevtoolsSolidPlugin } from './core'
|