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

@startupjs/sharedb-schema

Package Overview
Dependencies
Maintainers
6
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/sharedb-schema - npm Package Compare versions

Comparing version 0.55.0-alpha.1 to 0.55.0-alpha.12

4

lib/index.js

@@ -1,4 +0,4 @@

const Schema = require('./Schema')
import Schema from './Schema.js'
module.exports = function plugin (backend, options) {
export default function schema (backend, options) {
const schema = new Schema(backend, options)

@@ -5,0 +5,0 @@

@@ -1,4 +0,4 @@

const ZSchema = require('z-schema')
import ZSchema from 'z-schema'
class Schema {
export default class Schema {
constructor (backend, options = {}) {

@@ -17,3 +17,3 @@ if (!options.schemas) throw new Error('Schemas are required in options')

// register formats
for (let format in formats) {
for (const format in formats) {
ZSchema.registerFormat(format, options.formats[format])

@@ -163,3 +163,3 @@ }

getContexts = (schema, value) => {
let partialSchema = {}
const partialSchema = {}

@@ -199,3 +199,1 @@ if (!schema) {

}
module.exports = Schema
{
"name": "@startupjs/sharedb-schema",
"version": "0.55.0-alpha.1",
"version": "0.55.0-alpha.12",
"description": "Racer plugin for schema validation module for ShareDB",
"type": "module",
"main": "lib/index.js",
"scripts": {
"test": "yarn createTemp && mocha test/*.mocha.js",
"createTemp": "rm -rf ./temp && ./node_modules/.bin/babel ../../node_modules/@startupjs/orm/lib/promisifyRacer.js --out-dir temp"
"test": "mocha test/*.mocha.js"
},

@@ -13,11 +13,2 @@ "publishConfig": {

},
"dependencies": {
"z-schema": "^4.2.3"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"mocha": "^8.1.1"
},
"keywords": [

@@ -28,9 +19,11 @@ "sharedb",

],
"author": "Vladimir Makhaev",
"license": "MIT",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/startupjs/startupjs/issues"
"dependencies": {
"z-schema": "^4.2.3"
},
"gitHead": "f9f14627172890e54490aa3717e21f19614a958b"
"devDependencies": {
"mocha": "^8.1.3",
"racer": "1.0.1",
"sharedb": "^2.0.0"
},
"gitHead": "d9fdf45341ca733978cdc4fa2562055922e0c2ed"
}
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