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

@bayou/doc-common

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bayou/doc-common - npm Package Compare versions

Comparing version 1.2.4 to 1.3.0

14

BodySnapshot.js

@@ -30,3 +30,3 @@ // Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia).

/**
* {int} The length of this document, where the count is made
* {Int} The length of this document, where the count is made
* up of text and embeds. An embed has a length of 1.

@@ -60,9 +60,7 @@ */

/**
* Implementation of {@link validateChange}, which
* will perform semantic validation checks on a body change
* in the context of a snapshot.
* Implementation as required by the superclass.
*
* @param {BodyChange} change The change being validated.
* @throws {Error} A validation error if semantic validation
* performed on a given change fails.
* @param {BodyChange} change The change to be validated in the context of
* `this`.
* @throws {Error} Thrown if `change` is not valid to compose with `this`.
*/

@@ -94,3 +92,3 @@ _impl_validateChange(change) {

* @param {BodyOp} retainOp A retain Op.
* @param {int} bodyLength The maximum length that can be retained.
* @param {Int} bodyLength The maximum length that can be retained.
* @throws {Error} A validation error if any semantic validation fails

@@ -97,0 +95,0 @@ * on given `retain` op.

@@ -272,5 +272,11 @@ // Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia).

// TODO: implement caret snapshot specific validation
/**
* Implementation as required by the superclass.
*
* @param {CaretChange} change The change to be validated in the context of
* `this`.
* @throws {Error} Thrown if `change` is not valid to compose with `this`.
*/
_impl_validateChange() {
return true;
// **TODO:** Implement this!
}

@@ -277,0 +283,0 @@

@@ -7,13 +7,13 @@ {

"dependencies": {
"@bayou/api-common": "1.2.4",
"@bayou/codec": "1.2.4",
"@bayou/config-common": "1.2.4",
"@bayou/ot-common": "1.2.4",
"@bayou/see-all": "1.2.4",
"@bayou/typecheck": "1.2.4",
"@bayou/util-common": "1.2.4",
"@bayou/api-common": "1.3.0",
"@bayou/codec": "1.3.0",
"@bayou/config-common": "1.3.0",
"@bayou/ot-common": "1.3.0",
"@bayou/see-all": "1.3.0",
"@bayou/typecheck": "1.3.0",
"@bayou/util-common": "1.3.0",
"grapheme-splitter": "^1.0.2"
},
"name": "@bayou/doc-common",
"version": "1.2.4"
"version": "1.3.0"
}

@@ -236,5 +236,11 @@ // Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia).

// TODO: implement property snapshot specific validation
/**
* Implementation as required by the superclass.
*
* @param {PropertyChange} change The change to be validated in the context of
* `this`.
* @throws {Error} Thrown if `change` is not valid to compose with `this`.
*/
_impl_validateChange() {
return true;
// **TODO:** Implement this!
}

@@ -241,0 +247,0 @@

@@ -5,3 +5,3 @@ // Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia).

import { BaseKey, BearerToken } from '@bayou/api-common';
import { BearerToken } from '@bayou/api-common';
import { TString } from '@bayou/typecheck';

@@ -95,3 +95,3 @@ import { CommonBase } from '@bayou/util-common';

? token.safeString
: BaseKey.redactString(token);
: BearerToken.redactString(token);

@@ -98,0 +98,0 @@ const result = {

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