unconventional 1.0.4 → 1.1.0

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.
@@ -15,7 +15,7 @@ export declare class BaseModel extends Document {
15
15
  static keyField?: string;
16
16
  static ownerField?: string;
17
17
  static db: DB;
18
- id: number;
18
+ id: number | string;
19
19
  static create<T extends typeof BaseModel>(this: T, data: Partial<InstanceType<T>>, upsertConfig?: UpsertConfig<T>): Promise<InstanceType<T> | null>;
20
20
  static createMany<T extends typeof BaseModel>(this: T, data: Partial<InstanceType<T>>[], upsertConfig?: UpsertConfig<T>): Promise<InstanceType<T>[] | null>;
21
21
  static findById<T extends typeof BaseModel>(this: T, id: string | number, config?: FilterConfig): Promise<InstanceType<T> | null>;
@@ -180,7 +180,7 @@ class BaseModel extends Document {
180
180
  exports.BaseModel = BaseModel;
181
181
  __decorate([
182
182
  (0, prop_decorator_1.prop)({ required: true, unique: true }),
183
- __metadata("design:type", Number)
183
+ __metadata("design:type", Object)
184
184
  ], BaseModel.prototype, "id", void 0);
185
185
  let TimeStamped = class TimeStamped extends BaseModel {
186
186
  createdAt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unconventional",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "A complete server built on Cloudflare Pages Functions",
5
5
  "keywords": [
6
6
  "cloudflare",