@tscircuit/fake-snippets 0.0.165 → 0.0.166
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/bundle.js +21 -11
- package/dist/index.d.ts +5 -0
- package/dist/index.js +14 -7
- package/dist/schema.d.ts +11 -0
- package/dist/schema.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -752,6 +752,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
752
752
|
created_at: z.ZodString;
|
|
753
753
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
754
754
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
755
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
755
756
|
}, "strip", z.ZodTypeAny, {
|
|
756
757
|
package_release_id: string;
|
|
757
758
|
created_at: string;
|
|
@@ -760,6 +761,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
760
761
|
content_text?: string | null | undefined;
|
|
761
762
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
762
763
|
content_mimetype?: string | null | undefined;
|
|
764
|
+
is_text?: boolean | undefined;
|
|
763
765
|
is_release_tarball?: boolean | undefined;
|
|
764
766
|
npm_pack_output?: any;
|
|
765
767
|
}, {
|
|
@@ -770,6 +772,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
770
772
|
content_text?: string | null | undefined;
|
|
771
773
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
772
774
|
content_mimetype?: string | null | undefined;
|
|
775
|
+
is_text?: boolean | undefined;
|
|
773
776
|
is_release_tarball?: boolean | undefined;
|
|
774
777
|
npm_pack_output?: any;
|
|
775
778
|
}>;
|
|
@@ -1290,6 +1293,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1290
1293
|
content_text?: string | null | undefined;
|
|
1291
1294
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1292
1295
|
content_mimetype?: string | null | undefined;
|
|
1296
|
+
is_text?: boolean | undefined;
|
|
1293
1297
|
is_release_tarball?: boolean | undefined;
|
|
1294
1298
|
npm_pack_output?: any;
|
|
1295
1299
|
}[];
|
|
@@ -1912,6 +1916,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1912
1916
|
content_text?: string | null | undefined;
|
|
1913
1917
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1914
1918
|
content_mimetype?: string | null | undefined;
|
|
1919
|
+
is_text?: boolean | undefined;
|
|
1915
1920
|
is_release_tarball?: boolean | undefined;
|
|
1916
1921
|
npm_pack_output?: any;
|
|
1917
1922
|
}[];
|
package/dist/index.js
CHANGED
|
@@ -285,7 +285,8 @@ var packageFileSchema = z.object({
|
|
|
285
285
|
content_mimetype: z.string().nullable().optional(),
|
|
286
286
|
created_at: z.string().datetime(),
|
|
287
287
|
is_release_tarball: z.boolean().optional(),
|
|
288
|
-
npm_pack_output: z.any().nullable().optional()
|
|
288
|
+
npm_pack_output: z.any().nullable().optional(),
|
|
289
|
+
is_text: z.boolean().optional()
|
|
289
290
|
});
|
|
290
291
|
var packageFileLiteSchema = packageFileSchema.omit({
|
|
291
292
|
content_text: true
|
|
@@ -1286,7 +1287,8 @@ export const TestComponent = ({ name }: { name: string }) => (
|
|
|
1286
1287
|
<resistor name={name} resistance="10k" />
|
|
1287
1288
|
)
|
|
1288
1289
|
`.trim(),
|
|
1289
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
1290
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1291
|
+
is_text: true
|
|
1290
1292
|
});
|
|
1291
1293
|
db.addPackageFile({
|
|
1292
1294
|
package_release_id: test2PackageReleaseId,
|
|
@@ -1338,7 +1340,8 @@ export const TestComponent = ({ name }: { name: string }) => (
|
|
|
1338
1340
|
"material": "fr4"
|
|
1339
1341
|
}
|
|
1340
1342
|
]`.trim(),
|
|
1341
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
1343
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1344
|
+
is_text: true
|
|
1342
1345
|
});
|
|
1343
1346
|
db.addPackageBuild({
|
|
1344
1347
|
package_release_id: test2PackageReleaseId,
|
|
@@ -2564,7 +2567,8 @@ export const SquareWaveModule = () => (
|
|
|
2564
2567
|
<resistor name={name} resistance="10k" />
|
|
2565
2568
|
)
|
|
2566
2569
|
`.trim(),
|
|
2567
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2570
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2571
|
+
is_text: true
|
|
2568
2572
|
});
|
|
2569
2573
|
db.addPackageFile({
|
|
2570
2574
|
package_release_id: testOrgPackageReleaseId,
|
|
@@ -2616,7 +2620,8 @@ export const SquareWaveModule = () => (
|
|
|
2616
2620
|
"material": "fr4"
|
|
2617
2621
|
}
|
|
2618
2622
|
]`.trim(),
|
|
2619
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2623
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2624
|
+
is_text: true
|
|
2620
2625
|
});
|
|
2621
2626
|
db.addPackageBuild({
|
|
2622
2627
|
package_release_id: testOrgPackageReleaseId,
|
|
@@ -2796,7 +2801,8 @@ export default () => (
|
|
|
2796
2801
|
/>
|
|
2797
2802
|
</board>
|
|
2798
2803
|
)`,
|
|
2799
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2804
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2805
|
+
is_text: true
|
|
2800
2806
|
});
|
|
2801
2807
|
const glbFilePath = join(__dirname2, "assets", "test.glb");
|
|
2802
2808
|
const glbFileContent = readFileSync(glbFilePath);
|
|
@@ -2805,7 +2811,8 @@ export default () => (
|
|
|
2805
2811
|
file_path: "test.glb",
|
|
2806
2812
|
content_bytes: glbFileContent,
|
|
2807
2813
|
content_mimetype: "model/gltf-binary",
|
|
2808
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2814
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2815
|
+
is_text: false
|
|
2809
2816
|
});
|
|
2810
2817
|
db.addPackageBuild({
|
|
2811
2818
|
package_release_id: glbModelReleaseId,
|
package/dist/schema.d.ts
CHANGED
|
@@ -970,6 +970,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
970
970
|
created_at: z.ZodString;
|
|
971
971
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
972
972
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
973
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
973
974
|
}, "strip", z.ZodTypeAny, {
|
|
974
975
|
package_release_id: string;
|
|
975
976
|
created_at: string;
|
|
@@ -978,6 +979,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
978
979
|
content_text?: string | null | undefined;
|
|
979
980
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
980
981
|
content_mimetype?: string | null | undefined;
|
|
982
|
+
is_text?: boolean | undefined;
|
|
981
983
|
is_release_tarball?: boolean | undefined;
|
|
982
984
|
npm_pack_output?: any;
|
|
983
985
|
}, {
|
|
@@ -988,6 +990,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
988
990
|
content_text?: string | null | undefined;
|
|
989
991
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
990
992
|
content_mimetype?: string | null | undefined;
|
|
993
|
+
is_text?: boolean | undefined;
|
|
991
994
|
is_release_tarball?: boolean | undefined;
|
|
992
995
|
npm_pack_output?: any;
|
|
993
996
|
}>;
|
|
@@ -1001,6 +1004,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1001
1004
|
created_at: z.ZodString;
|
|
1002
1005
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
1003
1006
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1007
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
1004
1008
|
}, "content_text">, "strip", z.ZodTypeAny, {
|
|
1005
1009
|
package_release_id: string;
|
|
1006
1010
|
created_at: string;
|
|
@@ -1008,6 +1012,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1008
1012
|
package_file_id: string;
|
|
1009
1013
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1010
1014
|
content_mimetype?: string | null | undefined;
|
|
1015
|
+
is_text?: boolean | undefined;
|
|
1011
1016
|
is_release_tarball?: boolean | undefined;
|
|
1012
1017
|
npm_pack_output?: any;
|
|
1013
1018
|
}, {
|
|
@@ -1017,6 +1022,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1017
1022
|
package_file_id: string;
|
|
1018
1023
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1019
1024
|
content_mimetype?: string | null | undefined;
|
|
1025
|
+
is_text?: boolean | undefined;
|
|
1020
1026
|
is_release_tarball?: boolean | undefined;
|
|
1021
1027
|
npm_pack_output?: any;
|
|
1022
1028
|
}>;
|
|
@@ -1765,6 +1771,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1765
1771
|
created_at: z.ZodString;
|
|
1766
1772
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
1767
1773
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1774
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
1768
1775
|
}, "strip", z.ZodTypeAny, {
|
|
1769
1776
|
package_release_id: string;
|
|
1770
1777
|
created_at: string;
|
|
@@ -1773,6 +1780,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1773
1780
|
content_text?: string | null | undefined;
|
|
1774
1781
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1775
1782
|
content_mimetype?: string | null | undefined;
|
|
1783
|
+
is_text?: boolean | undefined;
|
|
1776
1784
|
is_release_tarball?: boolean | undefined;
|
|
1777
1785
|
npm_pack_output?: any;
|
|
1778
1786
|
}, {
|
|
@@ -1783,6 +1791,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1783
1791
|
content_text?: string | null | undefined;
|
|
1784
1792
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1785
1793
|
content_mimetype?: string | null | undefined;
|
|
1794
|
+
is_text?: boolean | undefined;
|
|
1786
1795
|
is_release_tarball?: boolean | undefined;
|
|
1787
1796
|
npm_pack_output?: any;
|
|
1788
1797
|
}>, "many">>;
|
|
@@ -2801,6 +2810,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2801
2810
|
content_text?: string | null | undefined;
|
|
2802
2811
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
2803
2812
|
content_mimetype?: string | null | undefined;
|
|
2813
|
+
is_text?: boolean | undefined;
|
|
2804
2814
|
is_release_tarball?: boolean | undefined;
|
|
2805
2815
|
npm_pack_output?: any;
|
|
2806
2816
|
}[];
|
|
@@ -3197,6 +3207,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3197
3207
|
content_text?: string | null | undefined;
|
|
3198
3208
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
3199
3209
|
content_mimetype?: string | null | undefined;
|
|
3210
|
+
is_text?: boolean | undefined;
|
|
3200
3211
|
is_release_tarball?: boolean | undefined;
|
|
3201
3212
|
npm_pack_output?: any;
|
|
3202
3213
|
}[] | undefined;
|
package/dist/schema.js
CHANGED
|
@@ -279,7 +279,8 @@ var packageFileSchema = z.object({
|
|
|
279
279
|
content_mimetype: z.string().nullable().optional(),
|
|
280
280
|
created_at: z.string().datetime(),
|
|
281
281
|
is_release_tarball: z.boolean().optional(),
|
|
282
|
-
npm_pack_output: z.any().nullable().optional()
|
|
282
|
+
npm_pack_output: z.any().nullable().optional(),
|
|
283
|
+
is_text: z.boolean().optional()
|
|
283
284
|
});
|
|
284
285
|
var packageFileLiteSchema = packageFileSchema.omit({
|
|
285
286
|
content_text: true
|