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

@contember/schema-definition

Package Overview
Dependencies
Maintainers
5
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/schema-definition - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0-alpha.0

3

dist/src/acl/PredicateReference.js

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

exports.default = PredicateReference;
exports.resolvePredicateReference = (model, permissions, entity, predicate) => {
const resolvePredicateReference = (model, permissions, entity, predicate) => {
const predicateDefinitionProcessor = new schema_utils_1.PredicateDefinitionProcessor(model);

@@ -36,2 +36,3 @@ return predicateDefinitionProcessor.process(entity, predicate, {

};
exports.resolvePredicateReference = resolvePredicateReference;
//# sourceMappingURL=PredicateReference.js.map

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

const utils_1 = require("../../utils");
exports.getColumnType = (type) => {
const getColumnType = (type) => {
switch (type) {

@@ -29,2 +29,3 @@ case schema_1.Model.ColumnType.Int:

};
exports.getColumnType = getColumnType;
//# sourceMappingURL=getColumnType.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tuple = void 0;
exports.tuple = (...args) => args;
const tuple = (...args) => args;
exports.tuple = tuple;
//# sourceMappingURL=tuple.js.map

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

const schema_1 = require("@contember/schema");
exports.parsePath = (path) => {
const parsePath = (path) => {
if (!path) {

@@ -18,2 +18,3 @@ return [];

};
exports.parsePath = parsePath;
const ArgumentFactory = {

@@ -154,11 +155,19 @@ validator: (validator) => ({

exports.when = when;
exports.assert = (validator, message) => fluent().assert(validator, message);
const assert = (validator, message) => fluent().assert(validator, message);
exports.assert = assert;
/** alias for assertDefined */
exports.required = (message) => fluent().assertDefined(message);
exports.assertDefined = (message) => fluent().assertDefined(message);
exports.assertNotEmpty = (message) => fluent().assertNotEmpty(message);
exports.assertPattern = (pattern, message) => fluent().assertPattern(pattern, message);
exports.assertMinLength = (min, message) => fluent().assertMinLength(min, message);
exports.assertMaxLength = (min, message) => fluent().assertMaxLength(min, message);
exports.combine = (...decorators) => (target, propertyKey) => decorators.forEach(it => it(target, propertyKey));
const required = (message) => fluent().assertDefined(message);
exports.required = required;
const assertDefined = (message) => fluent().assertDefined(message);
exports.assertDefined = assertDefined;
const assertNotEmpty = (message) => fluent().assertNotEmpty(message);
exports.assertNotEmpty = assertNotEmpty;
const assertPattern = (pattern, message) => fluent().assertPattern(pattern, message);
exports.assertPattern = assertPattern;
const assertMinLength = (min, message) => fluent().assertMinLength(min, message);
exports.assertMinLength = assertMinLength;
const assertMaxLength = (min, message) => fluent().assertMaxLength(min, message);
exports.assertMaxLength = assertMaxLength;
const combine = (...decorators) => (target, propertyKey) => decorators.forEach(it => it(target, propertyKey));
exports.combine = combine;
function parseDefinition(definitions) {

@@ -165,0 +174,0 @@ return Object.entries(definitions)

{
"name": "@contember/schema-definition",
"version": "0.11.0",
"version": "0.12.0-alpha.0",
"license": "Apache-2.0",

@@ -11,4 +11,4 @@ "main": "dist/src/index.js",

"dependencies": {
"@contember/schema": "^0.11.0",
"@contember/schema-utils": "^0.11.0",
"@contember/schema": "^0.12.0-alpha.0",
"@contember/schema-utils": "^0.12.0-alpha.0",
"reflect-metadata": "^0.1.13"

@@ -15,0 +15,0 @@ },

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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