@tsed/schema
Advanced tools
Comparing version 6.12.1 to 6.13.0
@@ -6,2 +6,6 @@ "use strict"; | ||
/** | ||
* @ignore | ||
*/ | ||
const defaultCB = (value, ctx) => ctx.mongoose !== true; | ||
/** | ||
* Ignore the property when JsonMapper serialize the class to a Plain Object JavaScript. | ||
@@ -62,3 +66,3 @@ * | ||
*/ | ||
function Ignore(cb = () => true) { | ||
function Ignore(cb = defaultCB) { | ||
return jsonEntityFn_1.JsonEntityFn((store) => { | ||
@@ -65,0 +69,0 @@ store.itemSchema.ignore(cb); |
@@ -1,2 +0,8 @@ | ||
export interface JsonHookContext { | ||
declare global { | ||
namespace TsED { | ||
interface JsonHookContext { | ||
} | ||
} | ||
} | ||
export interface JsonHookContext extends TsED.JsonHookContext { | ||
/** | ||
@@ -3,0 +9,0 @@ * The current instance used by serializer function |
@@ -35,2 +35,3 @@ "use strict"; | ||
options = { | ||
endpoint: true, | ||
...options, | ||
@@ -37,0 +38,0 @@ specType: options.specType || SpecTypes_1.SpecTypes.JSON, |
{ | ||
"name": "@tsed/schema", | ||
"version": "6.12.1", | ||
"version": "6.13.0", | ||
"description": "JsonSchema module for Ts.ED Framework", | ||
@@ -18,4 +18,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@tsed/core": "6.12.1", | ||
"@tsed/openspec": "6.12.1", | ||
"@tsed/core": "6.13.0", | ||
"@tsed/openspec": "6.13.0", | ||
"change-case": "4.1.1", | ||
@@ -22,0 +22,0 @@ "tslib": "2.0.1" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
591777
10473
+ Added@tsed/core@6.13.0(transitive)
+ Added@tsed/openspec@6.13.0(transitive)
- Removed@tsed/core@6.12.1(transitive)
- Removed@tsed/openspec@6.12.1(transitive)
Updated@tsed/core@6.13.0
Updated@tsed/openspec@6.13.0