@zenstackhq/sdk
Advanced tools
Comparing version 1.0.0-alpha.98 to 1.0.0-alpha.99
@@ -22,1 +22,5 @@ /** | ||
} | ||
/** | ||
* @zenstackhq/runtime package name | ||
*/ | ||
export declare const RUNTIME_PACKAGE = "@zenstackhq/runtime"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CrudFailureReason = exports.AUXILIARY_FIELDS = exports.GUARD_FIELD_NAME = exports.TRANSACTION_FIELD_NAME = void 0; | ||
exports.RUNTIME_PACKAGE = exports.CrudFailureReason = exports.AUXILIARY_FIELDS = exports.GUARD_FIELD_NAME = exports.TRANSACTION_FIELD_NAME = void 0; | ||
/** | ||
@@ -26,2 +26,6 @@ * Auxiliary database field for supporting policy check for nested writes | ||
})(CrudFailureReason = exports.CrudFailureReason || (exports.CrudFailureReason = {})); | ||
/** | ||
* @zenstackhq/runtime package name | ||
*/ | ||
exports.RUNTIME_PACKAGE = '@zenstackhq/runtime'; | ||
//# sourceMappingURL=constants.js.map |
@@ -5,1 +5,2 @@ export * from './code-gen'; | ||
export * from './utils'; | ||
export * from './policy'; |
@@ -21,2 +21,3 @@ "use strict"; | ||
__exportStar(require("./utils"), exports); | ||
__exportStar(require("./policy"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@zenstackhq/sdk", | ||
"version": "1.0.0-alpha.98", | ||
"version": "1.0.0-alpha.99", | ||
"description": "ZenStack plugin development SDK", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"ts-morph": "^16.0.0", | ||
"@zenstackhq/language": "1.0.0-alpha.98" | ||
"@zenstackhq/language": "1.0.0-alpha.99" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
@@ -17,3 +17,3 @@ import { DMMF } from '@prisma/generator-helper'; | ||
*/ | ||
export type PluginFunction = (model: Model, options: PluginOptions, dmmf?: DMMF.Document) => Promise<string[]> | string[] | Promise<void> | void; | ||
export type PluginFunction = (model: Model, options: PluginOptions, dmmf?: DMMF.Document, config?: Record<string, string>) => Promise<string[]> | string[] | Promise<void> | void; | ||
/** | ||
@@ -20,0 +20,0 @@ * Plugin error |
@@ -36,3 +36,3 @@ "use strict"; | ||
} | ||
return arr.map((item) => getLiteral(item)); | ||
return arr.map((item) => { var _a; return (_a = getLiteral(item)) !== null && _a !== void 0 ? _a : getObjectLiteral(item); }); | ||
} | ||
@@ -39,0 +39,0 @@ exports.getLiteralArray = getLiteralArray; |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56634
48
849
+ Added@zenstackhq/language@1.0.0-alpha.99(transitive)
- Removed@zenstackhq/language@1.0.0-alpha.98(transitive)