Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typegoose

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typegoose - npm Package Compare versions

Comparing version 5.6.0 to 5.7.0

10

lib/prop.d.ts

@@ -38,5 +38,13 @@ /** @format */

}
export interface VirtualOptions {
ref: string;
localField: string;
foreignField: string;
justOne: boolean;
/** Set to true, when it is an "virtual populate-able" */
overwrite: boolean;
}
export declare type PropOptionsWithNumberValidate = PropOptions & ValidateNumberOptions;
export declare type PropOptionsWithStringValidate = PropOptions & TransformStringOptions & ValidateStringOptions;
export declare type PropOptionsWithValidate = PropOptionsWithNumberValidate | PropOptionsWithStringValidate;
export declare type PropOptionsWithValidate = PropOptionsWithNumberValidate | PropOptionsWithStringValidate | VirtualOptions;
export declare const prop: (options?: PropOptionsWithValidate) => (target: any, key: string) => void;

@@ -43,0 +51,0 @@ export interface ArrayPropOptions extends BasePropOptions {

6

lib/prop.js

@@ -44,3 +44,3 @@ "use strict";

}
data_1.virtuals[name][key] = __assign({}, data_1.virtuals[name][key], { get: isGetterSetter.get });
data_1.virtuals[name][key] = __assign({}, data_1.virtuals[name][key], { get: isGetterSetter.get, options: rawOptions });
}

@@ -54,3 +54,3 @@ if (isGetterSetter.set) {

}
data_1.virtuals[name][key] = __assign({}, data_1.virtuals[name][key], { set: isGetterSetter.set });
data_1.virtuals[name][key] = __assign({}, data_1.virtuals[name][key], { set: isGetterSetter.set, options: rawOptions });
}

@@ -144,2 +144,2 @@ return;

}; };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm9wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxjQUFjOzs7Ozs7Ozs7Ozs7Ozs7Ozs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0tBQy9DO0lBRUQsYUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLEdBQUcsQ0FBQyxnQkFDWixhQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLEVBQ2pCLE9BQU8sSUFDVixJQUFJLEVBQUUsYUFBYSxHQUNwQixDQUFDO0lBQ0YsT0FBTztBQUNULENBQUMsQ0FBQztBQUVXLFFBQUEsSUFBSSxHQUFHLFVBQUMsT0FBcUM7SUFBckMsd0JBQUEsRUFBQSxZQUFxQztJQUFLLE9BQUEsVUFBQyxNQUFXLEVBQUUsR0FBVztRQUN0RixJQUFNLElBQUksR0FBSSxPQUFlLENBQUMsV0FBVyxDQUFDLGFBQWEsRUFBRSxNQUFNLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFFdEUsSUFBSSxDQUFDLElBQUksRUFBRTtZQUNULE1BQU0sSUFBSSx3QkFBZSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQ2hDO1FBRUQsUUFBUSxDQUFDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQ3ZDLENBQUM7QUFSOEQsQ0FROUQsQ0FBQztBQU9XLFFBQUEsU0FBUyxHQUFHLFVBQUMsT0FBeUIsSUFBSyxPQUFBLFVBQUMsTUFBVyxFQUFFLEdBQVc7SUFDL0UsSUFBTSxJQUFJLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQztJQUMzQixRQUFRLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQzdDLENBQUMsRUFIdUQsQ0FHdkQsQ0FBQyJ9

@@ -102,7 +102,12 @@ "use strict";

var key = _c[_b];
if (getterSetters[key].get) {
sch.virtual(key).get(getterSetters[key].get);
if (getterSetters[key].options && getterSetters[key].options.overwrite) {
sch.virtual(key, getterSetters[key].options);
}
if (getterSetters[key].set) {
sch.virtual(key).set(getterSetters[key].set);
else {
if (getterSetters[key].get) {
sch.virtual(key, getterSetters[key].options).get(getterSetters[key].get);
}
if (getterSetters[key].set) {
sch.virtual(key, getterSetters[key].options).set(getterSetters[key].set);
}
}

@@ -121,2 +126,2 @@ }

exports.Typegoose = Typegoose;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWdvb3NlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3R5cGVnb29zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsY0FBYzs7Ozs7QUFFZCw0QkFBMEI7QUFDMUIsbUNBQXFDO0FBRXBDLFFBQWdCLENBQUMsT0FBTyxHQUFHLE1BQU0sQ0FBQyxPQUFPLENBQUM7QUFFM0MsK0JBQXlGO0FBRXpGLDhCQUF5QjtBQUN6Qiw0QkFBdUI7QUFDdkIsNkJBQXdCO0FBQ3hCLDhCQUF5QjtBQUN6Qix1QkFBa0I7QUFDbEIsaUNBQThDO0FBQXJDLHNDQUFBLG1CQUFtQixDQUFBO0FBVzVCO0lBQUE7SUFzR0EsQ0FBQztJQXJHQyxvQ0FBZ0IsR0FBaEIsVUFBb0IsQ0FBSSxFQUFFLEVBQXFGO1lBQXJGLDRCQUFxRixFQUFuRixzQ0FBZ0IsRUFBRSxnQ0FBYSxFQUFFLDBDQUFrQjtRQUM3RSxJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQztRQUNuQyxJQUFJLENBQUMsYUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ2pCLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLEVBQUU7Z0JBQ3ZCLGdCQUFnQixrQkFBQTtnQkFDaEIsYUFBYSxlQUFBO2dCQUNiLGtCQUFrQixvQkFBQTthQUNuQixDQUFDLENBQUM7U0FDSjtRQUVELE9BQU8sYUFBTSxDQU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BQyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7cUJBQzFFO2lCQUNGO2FBQ0Y7U0FDRjtRQUVELElBQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUMsbUJBQW1CLEVBQUUsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDO1FBQ2xFLEtBQW9CLFVBQU8sRUFBUCxtQkFBTyxFQUFQLHFCQUFPLEVBQVAsSUFBTyxFQUFFO1lBQXhCLElBQU0sS0FBSyxnQkFBQTtZQUNkLEdBQUcsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7U0FDeEM7UUFFRCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFDSCxnQkFBQztBQUFELENBQUMsQUExR0QsSUEwR0M7QUExR1ksOEJBQVMifQ==
{
"name": "typegoose",
"version": "5.6.0",
"version": "5.7.0",
"description": "Define Mongoose models using TypeScript classes.",

@@ -5,0 +5,0 @@ "main": "lib/typegoose.js",

@@ -238,3 +238,12 @@ # Typegoose

```
- `_id`: When false, no \_id is added to the subdocument
```typescript
class Car extends Typegoose {}
@prop({ _id: false })
car?: Car;
```
- `ref`: By adding the `ref` option with another Typegoose class as value, a Mongoose reference property will be created. The type of the property on the Typegoose extending class should be `Ref<T>` (see Types section).

@@ -491,2 +500,4 @@

Note: TypeScript has its own InstanceType, you should import it from Typegoose
#### ModelType<T>

@@ -493,0 +504,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc