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
258
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 1.3.0-alpha.2 to 1.3.0-alpha.4

dist/src/actions/definition/index.d.ts

4

dist/src/createSchema.js

@@ -7,2 +7,3 @@ "use strict";

const AclDefinition = require("./acl/definition");
const ActionsDefinition = require("./actions/definition");
const schema_utils_1 = require("@contember/schema-utils");

@@ -13,3 +14,4 @@ const createSchema = (definitions, modifyCallback) => {

const acl = AclDefinition.createAcl(definitions, model);
const schema = { ...schema_utils_1.emptySchema, model, validation, acl };
const actions = ActionsDefinition.createActions(definitions);
const schema = { ...schema_utils_1.emptySchema, model, validation, acl, actions };
return modifyCallback ? modifyCallback(schema) : schema;

@@ -16,0 +18,0 @@ };

@@ -5,4 +5,5 @@ export { AllowAllPermissionFactory } from '@contember/schema-utils';

export * as AclDefinition from './acl/definition';
export * as ActionsDefinition from './actions/definition';
export * from './createSchema';
export * from './model';
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.AclDefinition = exports.InputValidation = exports.PermissionsBuilder = exports.AllowAllPermissionFactory = void 0;
exports.ActionsDefinition = exports.AclDefinition = exports.InputValidation = exports.PermissionsBuilder = exports.AllowAllPermissionFactory = void 0;
var schema_utils_1 = require("@contember/schema-utils");

@@ -25,4 +25,5 @@ Object.defineProperty(exports, "AllowAllPermissionFactory", { enumerable: true, get: function () { return schema_utils_1.AllowAllPermissionFactory; } });

exports.AclDefinition = require("./acl/definition");
exports.ActionsDefinition = require("./actions/definition");
__exportStar(require("./createSchema"), exports);
__exportStar(require("./model"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@contember/schema-definition",
"version": "1.3.0-alpha.2",
"version": "1.3.0-alpha.4",
"license": "Apache-2.0",

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

"dependencies": {
"@contember/schema": "^1.3.0-alpha.2",
"@contember/schema-utils": "^1.3.0-alpha.2",
"@contember/schema": "^1.3.0-alpha.4",
"@contember/schema-utils": "^1.3.0-alpha.4",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {}
"devDependencies": {
"graphql": "^16.5.0"
},
"peerDependencies": {
"graphql": ">= 14.6.0"
}
}
import { SchemaDefinition } from './model'
import * as InputValidation from './validation'
import * as AclDefinition from './acl/definition'
import * as ActionsDefinition from './actions/definition'
import { Schema } from '@contember/schema'

@@ -11,4 +12,5 @@ import { emptySchema } from '@contember/schema-utils'

const acl = AclDefinition.createAcl(definitions, model)
const schema = { ...emptySchema, model, validation, acl }
const actions = ActionsDefinition.createActions(definitions)
const schema = { ...emptySchema, model, validation, acl, actions }
return modifyCallback ? modifyCallback(schema) : schema
}

@@ -5,3 +5,4 @@ export { AllowAllPermissionFactory } from '@contember/schema-utils'

export * as AclDefinition from './acl/definition'
export * as ActionsDefinition from './actions/definition'
export * from './createSchema'
export * from './model'

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