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

lib0

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib0 - npm Package Compare versions

Comparing version 0.2.34 to 0.2.35

.circleci/config.yml

1

array.d.ts

@@ -22,2 +22,3 @@ export function last<L>(arr: L[]): L;

export function equalFlat<ELEM>(a: ELEM[], b: ELEM[]): boolean;
export function flatten<ELEM>(arr: ELEM[][]): ELEM[];
//# sourceMappingURL=array.d.ts.map

@@ -83,1 +83,8 @@ /**

export const equalFlat = (a, b) => a.length === b.length && every(a, (item, index) => item === b[index])
/**
* @template ELEM
* @param {Array<Array<ELEM>>} arr
* @return {Array<ELEM>}
*/
export const flatten = arr => arr.reduce((acc, val) => acc.concat(val), [])
export function testAppend(tc: t.TestCase): void;
export function testflatten(tc: t.TestCase): void;
import * as t from "./testing.js";
//# sourceMappingURL=array.test.d.ts.map

3

component.d.ts

@@ -22,4 +22,5 @@ export const registry: CustomElementRegistry;

* @param {S} state
* @param {boolean} [forceStateUpdate] Force that the state is rerendered even if state didn't change
*/
setState(state: S): void;
setState(state: S, forceStateUpdate?: boolean | undefined): void;
/**

@@ -26,0 +27,0 @@ * @param {any} stateUpdate

@@ -58,4 +58,5 @@ /* eslint-env browser */

* @param {S} state
* @param {boolean} [forceStateUpdate] Force that the state is rerendered even if state didn't change
*/
setState (state) {}
setState (state, forceStateUpdate = true) {}
/**

@@ -164,3 +165,3 @@ * @param {any} stateUpdate

*/
this.state = state || (object.assign({}, defaultState))
this.state = state || null
this.connected = false

@@ -193,3 +194,6 @@ // init shadow dom

}
const startState = this.state
/**
* @type {Object<string, any>}
*/
const startState = this.state || object.assign({}, defaultState)
if (attrs) {

@@ -224,2 +228,3 @@ for (const key in attrs) {

dom.emitCustomEvent(/** @type {any} */ (this.shadowRoot || this), disconnectedEventName, { bubbles: true })
this.setState(null)
}

@@ -243,3 +248,3 @@

const parsedVal = parseAttrVal(newVal, type)
if ((type !== 'json' || json.stringify(curState[camelAttrName]) !== newVal) && curState[camelAttrName] !== parsedVal && !number.isNaN(parsedVal)) {
if (curState && (type !== 'json' || json.stringify(curState[camelAttrName]) !== newVal) && curState[camelAttrName] !== parsedVal && !number.isNaN(parsedVal)) {
this.updateState({ [camelAttrName]: parsedVal })

@@ -246,0 +251,0 @@ }

@@ -22,2 +22,3 @@ export function last<L>(arr: L[]): L;

export function equalFlat<ELEM>(a: ELEM[], b: ELEM[]): boolean;
export function flatten<ELEM>(arr: ELEM[][]): ELEM[];
//# sourceMappingURL=array.d.ts.map
export function testAppend(tc: t.TestCase): void;
export function testflatten(tc: t.TestCase): void;
import * as t from "./testing.js";
//# sourceMappingURL=array.test.d.ts.map

@@ -22,4 +22,5 @@ export const registry: CustomElementRegistry;

* @param {S} state
* @param {boolean} [forceStateUpdate] Force that the state is rerendered even if state didn't change
*/
setState(state: S): void;
setState(state: S, forceStateUpdate?: boolean | undefined): void;
/**

@@ -26,0 +27,0 @@ * @param {any} stateUpdate

@@ -300,3 +300,5 @@ /**

*
* TODO: can be improved!
* @TODO: can be improved!
* - Note: Should consider that when appending a lot of small Encoders, we should rather clone than referencing the old structure.
* Encoders start with a rather big initial buffer.
*

@@ -303,0 +305,0 @@ * @function

{
"name": "lib0",
"version": "0.2.34",
"version": "0.2.35",
"description": "",

@@ -5,0 +5,0 @@ "sideEffects": false,

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

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

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

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 too big to display

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 too big to display

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