@tscircuit/fake-snippets 0.0.159 → 0.0.161
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 +9 -7
- package/dist/index.js +5 -3
- package/dist/schema.js +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -470,8 +470,8 @@ var databaseSchema = z.object({
|
|
|
470
470
|
bugReports: z.array(bugReportSchema).default([]),
|
|
471
471
|
bugReportFiles: z.array(bugReportFileSchema).default([])
|
|
472
472
|
});
|
|
473
|
-
var tscircuitHandleSchema = z.string().min(
|
|
474
|
-
/^[0-9A-Za-z][0-9A-Za-z_-]*[0-9A-Za-z]
|
|
473
|
+
var tscircuitHandleSchema = z.string().min(1).max(40).regex(
|
|
474
|
+
/^[0-9A-Za-z]([0-9A-Za-z_-]*[0-9A-Za-z])?$/,
|
|
475
475
|
"tscircuit_handle must start and end with a letter or number, and may only contain letters, numbers, underscores, and hyphens"
|
|
476
476
|
);
|
|
477
477
|
|
|
@@ -665,6 +665,7 @@ var seed = (db) => {
|
|
|
665
665
|
personal_org_id: "org-1234",
|
|
666
666
|
github_username: "testuser",
|
|
667
667
|
tscircuit_handle: "testuser",
|
|
668
|
+
email: "testuser@tscircuit.com",
|
|
668
669
|
shippingInfo: {
|
|
669
670
|
firstName: "Test",
|
|
670
671
|
lastName: "User",
|
|
@@ -680,7 +681,8 @@ var seed = (db) => {
|
|
|
680
681
|
});
|
|
681
682
|
const seveibarAcc = db.addAccount({
|
|
682
683
|
github_username: "seveibar",
|
|
683
|
-
tscircuit_handle: "seveibar"
|
|
684
|
+
tscircuit_handle: "seveibar",
|
|
685
|
+
email: "example@tscircuit.com"
|
|
684
686
|
});
|
|
685
687
|
if (process.env.AUTOLOAD_PACKAGES === "true") {
|
|
686
688
|
loadAutoloadPackages(db);
|
package/dist/schema.js
CHANGED
|
@@ -464,8 +464,8 @@ var databaseSchema = z.object({
|
|
|
464
464
|
bugReports: z.array(bugReportSchema).default([]),
|
|
465
465
|
bugReportFiles: z.array(bugReportFileSchema).default([])
|
|
466
466
|
});
|
|
467
|
-
var tscircuitHandleSchema = z.string().min(
|
|
468
|
-
/^[0-9A-Za-z][0-9A-Za-z_-]*[0-9A-Za-z]
|
|
467
|
+
var tscircuitHandleSchema = z.string().min(1).max(40).regex(
|
|
468
|
+
/^[0-9A-Za-z]([0-9A-Za-z_-]*[0-9A-Za-z])?$/,
|
|
469
469
|
"tscircuit_handle must start and end with a letter or number, and may only contain letters, numbers, underscores, and hyphens"
|
|
470
470
|
);
|
|
471
471
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/fake-snippets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.161",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"@tscircuit/3d-viewer": "^0.0.448",
|
|
85
85
|
"@tscircuit/assembly-viewer": "^0.0.5",
|
|
86
86
|
"@tscircuit/create-snippet-url": "^0.0.8",
|
|
87
|
-
"@tscircuit/eval": "^0.0.
|
|
87
|
+
"@tscircuit/eval": "^0.0.537",
|
|
88
88
|
"@tscircuit/layout": "^0.0.29",
|
|
89
89
|
"@tscircuit/mm": "^0.0.8",
|
|
90
90
|
"@tscircuit/pcb-viewer": "^1.11.256",
|
|
91
91
|
"@tscircuit/prompt-benchmarks": "^0.0.28",
|
|
92
|
-
"@tscircuit/runframe": "^0.0.
|
|
92
|
+
"@tscircuit/runframe": "^0.0.1379",
|
|
93
93
|
"@tscircuit/schematic-viewer": "^2.0.46",
|
|
94
94
|
"@tscircuit/simple-3d-svg": "^0.0.41",
|
|
95
95
|
"@types/babel__standalone": "^7.1.7",
|