@rebasepro/server-core 0.0.1-canary.7f31c25 → 0.0.1-canary.892f711

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/server-core",
3
3
  "type": "module",
4
- "version": "0.0.1-canary.7f31c25",
4
+ "version": "0.0.1-canary.892f711",
5
5
  "description": "Database-Agnostic Backend Core for Rebase",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -52,10 +52,10 @@
52
52
  "ts-morph": "27.0.2",
53
53
  "ws": "^8.16.0",
54
54
  "zod": "^3.22.4",
55
- "@rebasepro/types": "0.0.1-canary.7f31c25",
56
- "@rebasepro/common": "0.0.1-canary.7f31c25",
57
- "@rebasepro/utils": "0.0.1-canary.7f31c25",
58
- "@rebasepro/client": "0.0.1-canary.7f31c25"
55
+ "@rebasepro/client": "0.0.1-canary.892f711",
56
+ "@rebasepro/common": "0.0.1-canary.892f711",
57
+ "@rebasepro/utils": "0.0.1-canary.892f711",
58
+ "@rebasepro/types": "0.0.1-canary.892f711"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/jest": "^29.5.14",
@@ -69,8 +69,8 @@
69
69
  "ts-jest": "29.4.1",
70
70
  "typescript": "^5.0.0",
71
71
  "vite": "^5.0.0",
72
- "@rebasepro/common": "0.0.1-canary.7f31c25",
73
- "@rebasepro/types": "0.0.1-canary.7f31c25"
72
+ "@rebasepro/common": "0.0.1-canary.892f711",
73
+ "@rebasepro/types": "0.0.1-canary.892f711"
74
74
  },
75
75
  "gitHead": "d935eefa5aa8d1009a2398cfac2c1e4ee9aeb6b6",
76
76
  "publishConfig": {
package/history_diff.log DELETED
@@ -1,385 +0,0 @@
1
- [recordHistory: posts/1 - update]
2
- CHANGED FIELDS: null
3
- PREVIOUS: {
4
- "title": "same"
5
- }
6
- NEW: {
7
- "title": "same"
8
- }
9
-
10
- [recordHistory: posts/1 - update]
11
- CHANGED FIELDS: ["title","tags"]
12
- PREVIOUS: {
13
- "title": "old",
14
- "tags": [
15
- {
16
- "id": 1
17
- }
18
- ]
19
- }
20
- NEW: {
21
- "title": "new",
22
- "tags": [
23
- {
24
- "id": 2
25
- }
26
- ]
27
- }
28
-
29
- [recordHistory: posts/1 - create]
30
- CHANGED FIELDS: null
31
- PREVIOUS: undefined
32
- NEW: {
33
- "title": "new"
34
- }
35
-
36
- [recordHistory: posts/1 - update]
37
- CHANGED FIELDS: null
38
- PREVIOUS: {
39
- "title": "same"
40
- }
41
- NEW: {
42
- "title": "same"
43
- }
44
-
45
- [recordHistory: posts/1 - update]
46
- CHANGED FIELDS: ["title","tags"]
47
- PREVIOUS: {
48
- "title": "old",
49
- "tags": [
50
- {
51
- "id": 1
52
- }
53
- ]
54
- }
55
- NEW: {
56
- "title": "new",
57
- "tags": [
58
- {
59
- "id": 2
60
- }
61
- ]
62
- }
63
-
64
- [recordHistory: posts/1 - create]
65
- CHANGED FIELDS: null
66
- PREVIOUS: undefined
67
- NEW: {
68
- "title": "new"
69
- }
70
-
71
- [recordHistory: posts/1 - update]
72
- CHANGED FIELDS: null
73
- PREVIOUS: {
74
- "title": "same"
75
- }
76
- NEW: {
77
- "title": "same"
78
- }
79
-
80
- [recordHistory: posts/1 - update]
81
- CHANGED FIELDS: ["title","tags"]
82
- PREVIOUS: {
83
- "title": "old",
84
- "tags": [
85
- {
86
- "id": 1
87
- }
88
- ]
89
- }
90
- NEW: {
91
- "title": "new",
92
- "tags": [
93
- {
94
- "id": 2
95
- }
96
- ]
97
- }
98
-
99
- [recordHistory: posts/1 - create]
100
- CHANGED FIELDS: null
101
- PREVIOUS: undefined
102
- NEW: {
103
- "title": "new"
104
- }
105
-
106
- [recordHistory: posts/1 - update]
107
- CHANGED FIELDS: null
108
- PREVIOUS: {
109
- "title": "same"
110
- }
111
- NEW: {
112
- "title": "same"
113
- }
114
-
115
- [recordHistory: posts/1 - update]
116
- CHANGED FIELDS: ["title","tags"]
117
- PREVIOUS: {
118
- "title": "old",
119
- "tags": [
120
- {
121
- "id": 1
122
- }
123
- ]
124
- }
125
- NEW: {
126
- "title": "new",
127
- "tags": [
128
- {
129
- "id": 2
130
- }
131
- ]
132
- }
133
-
134
- [recordHistory: posts/1 - create]
135
- CHANGED FIELDS: null
136
- PREVIOUS: undefined
137
- NEW: {
138
- "title": "new"
139
- }
140
-
141
- [recordHistory: posts/1 - update]
142
- CHANGED FIELDS: null
143
- PREVIOUS: {
144
- "title": "same"
145
- }
146
- NEW: {
147
- "title": "same"
148
- }
149
-
150
- [recordHistory: posts/1 - update]
151
- CHANGED FIELDS: ["title","tags"]
152
- PREVIOUS: {
153
- "title": "old",
154
- "tags": [
155
- {
156
- "id": 1
157
- }
158
- ]
159
- }
160
- NEW: {
161
- "title": "new",
162
- "tags": [
163
- {
164
- "id": 2
165
- }
166
- ]
167
- }
168
-
169
- [recordHistory: posts/1 - create]
170
- CHANGED FIELDS: null
171
- PREVIOUS: undefined
172
- NEW: {
173
- "title": "new"
174
- }
175
-
176
- [recordHistory: posts/1 - update]
177
- CHANGED FIELDS: null
178
- PREVIOUS: {
179
- "title": "same"
180
- }
181
- NEW: {
182
- "title": "same"
183
- }
184
-
185
- [recordHistory: posts/1 - update]
186
- CHANGED FIELDS: ["title","tags"]
187
- PREVIOUS: {
188
- "title": "old",
189
- "tags": [
190
- {
191
- "id": 1
192
- }
193
- ]
194
- }
195
- NEW: {
196
- "title": "new",
197
- "tags": [
198
- {
199
- "id": 2
200
- }
201
- ]
202
- }
203
-
204
- [recordHistory: posts/1 - create]
205
- CHANGED FIELDS: null
206
- PREVIOUS: undefined
207
- NEW: {
208
- "title": "new"
209
- }
210
-
211
- [recordHistory: posts/1 - update]
212
- CHANGED FIELDS: null
213
- PREVIOUS: {
214
- "title": "same"
215
- }
216
- NEW: {
217
- "title": "same"
218
- }
219
-
220
- [recordHistory: posts/1 - update]
221
- CHANGED FIELDS: ["title","tags"]
222
- PREVIOUS: {
223
- "title": "old",
224
- "tags": [
225
- {
226
- "id": 1
227
- }
228
- ]
229
- }
230
- NEW: {
231
- "title": "new",
232
- "tags": [
233
- {
234
- "id": 2
235
- }
236
- ]
237
- }
238
-
239
- [recordHistory: posts/1 - create]
240
- CHANGED FIELDS: null
241
- PREVIOUS: undefined
242
- NEW: {
243
- "title": "new"
244
- }
245
-
246
- [recordHistory: posts/1 - update]
247
- CHANGED FIELDS: null
248
- PREVIOUS: {
249
- "title": "same"
250
- }
251
- NEW: {
252
- "title": "same"
253
- }
254
-
255
- [recordHistory: posts/1 - update]
256
- CHANGED FIELDS: ["title","tags"]
257
- PREVIOUS: {
258
- "title": "old",
259
- "tags": [
260
- {
261
- "id": 1
262
- }
263
- ]
264
- }
265
- NEW: {
266
- "title": "new",
267
- "tags": [
268
- {
269
- "id": 2
270
- }
271
- ]
272
- }
273
-
274
- [recordHistory: posts/1 - create]
275
- CHANGED FIELDS: null
276
- PREVIOUS: undefined
277
- NEW: {
278
- "title": "new"
279
- }
280
-
281
- [recordHistory: posts/1 - update]
282
- CHANGED FIELDS: null
283
- PREVIOUS: {
284
- "title": "same"
285
- }
286
- NEW: {
287
- "title": "same"
288
- }
289
-
290
- [recordHistory: posts/1 - update]
291
- CHANGED FIELDS: ["title","tags"]
292
- PREVIOUS: {
293
- "title": "old",
294
- "tags": [
295
- {
296
- "id": 1
297
- }
298
- ]
299
- }
300
- NEW: {
301
- "title": "new",
302
- "tags": [
303
- {
304
- "id": 2
305
- }
306
- ]
307
- }
308
-
309
- [recordHistory: posts/1 - create]
310
- CHANGED FIELDS: null
311
- PREVIOUS: undefined
312
- NEW: {
313
- "title": "new"
314
- }
315
-
316
- [recordHistory: posts/1 - update]
317
- CHANGED FIELDS: null
318
- PREVIOUS: {
319
- "title": "same"
320
- }
321
- NEW: {
322
- "title": "same"
323
- }
324
-
325
- [recordHistory: posts/1 - update]
326
- CHANGED FIELDS: ["title","tags"]
327
- PREVIOUS: {
328
- "title": "old",
329
- "tags": [
330
- {
331
- "id": 1
332
- }
333
- ]
334
- }
335
- NEW: {
336
- "title": "new",
337
- "tags": [
338
- {
339
- "id": 2
340
- }
341
- ]
342
- }
343
-
344
- [recordHistory: posts/1 - create]
345
- CHANGED FIELDS: null
346
- PREVIOUS: undefined
347
- NEW: {
348
- "title": "new"
349
- }
350
-
351
- [recordHistory: posts/1 - update]
352
- CHANGED FIELDS: null
353
- PREVIOUS: {
354
- "title": "same"
355
- }
356
- NEW: {
357
- "title": "same"
358
- }
359
-
360
- [recordHistory: posts/1 - update]
361
- CHANGED FIELDS: ["title","tags"]
362
- PREVIOUS: {
363
- "title": "old",
364
- "tags": [
365
- {
366
- "id": 1
367
- }
368
- ]
369
- }
370
- NEW: {
371
- "title": "new",
372
- "tags": [
373
- {
374
- "id": 2
375
- }
376
- ]
377
- }
378
-
379
- [recordHistory: posts/1 - create]
380
- CHANGED FIELDS: null
381
- PREVIOUS: undefined
382
- NEW: {
383
- "title": "new"
384
- }
385
-
package/scratch.ts DELETED
@@ -1,9 +0,0 @@
1
- import { Hono } from "hono";
2
- const app = new Hono();
3
- const child = new Hono();
4
- child.get("/*", (c) => {
5
- return c.json({ star: c.req.param("*"),
6
- path: c.req.path });
7
- })
8
- app.route("/api", child);
9
- app.request(new Request("http://localhost/api/users/1/posts")).then(r => r.json()).then(console.log);
package/test-ast.ts DELETED
@@ -1,28 +0,0 @@
1
- import { AstSchemaEditor } from "./src/api/ast-schema-editor";
2
- import * as fs from "fs";
3
-
4
- const collectionsDir = __dirname + "/collections-test";
5
- fs.mkdirSync(collectionsDir, { recursive: true });
6
- fs.writeFileSync(collectionsDir + "/users.ts", `
7
- export default {
8
- name: "Users",
9
- slug: "users",
10
- properties: {},
11
- securityRules: [
12
- { name: "test", operation: "read", mode: "permissive", roles: ["public"] }
13
- ]
14
- };
15
- `);
16
-
17
- async function main() {
18
- const editor = new AstSchemaEditor(collectionsDir);
19
- await editor.saveCollection("users", {
20
- name: "Users",
21
- slug: "users",
22
- properties: {},
23
- securityRules: []
24
- });
25
- console.log("AFTER SAVE:", fs.readFileSync(collectionsDir + "/users.ts", "utf8"));
26
- }
27
-
28
- main().catch(console.error);