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

@b9g/crank

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@b9g/crank - npm Package Compare versions

Comparing version 0.5.0-beta.2 to 0.5.0-beta.3

tags.cjs

37

crank.d.ts

@@ -223,3 +223,3 @@ /**

*/
cached: ElementValue<TNode>;
cachedChildValues: ElementValue<TNode>;
/**

@@ -231,5 +231,5 @@ * The child which this retainer replaces. This property is used when an

*/
fallback: RetainerChild<TNode>;
inflight: Promise<ElementValue<TNode>> | undefined;
onCommit: Function | undefined;
fallbackValue: RetainerChild<TNode>;
inflightValue: Promise<ElementValue<TNode>> | undefined;
onNextValues: Function | undefined;
constructor(el: Element);

@@ -288,3 +288,3 @@ }

}
declare const $RendererImpl: unique symbol;
declare const _RendererImpl: unique symbol;
/**

@@ -306,3 +306,3 @@ * An abstract class which is subclassed to render to different target

cache: WeakMap<object, Retainer<TNode>>;
[$RendererImpl]: RendererImpl<TNode, TScope, TRoot, TResult>;
[_RendererImpl]: RendererImpl<TNode, TScope, TRoot, TResult>;
constructor(impl: Partial<RendererImpl<TNode, TScope, TRoot, TResult>>);

@@ -316,3 +316,3 @@ /**

* element trees per root.
* @param ctx - An optional context that will be the ancestor context of all
* @param bridge - An optional context that will be the ancestor context of all
* elements in the tree. Useful for connecting different renderers so that

@@ -337,3 +337,3 @@ * events/provisions properly propagate. The context for a given root must be

* @internal
* The internal class which holds all context data.
* The internal class which holds context data.
*/

@@ -382,27 +382,16 @@ declare class ContextImpl<TNode = unknown, TScope = unknown, TRoot extends TNode = TNode, TResult = unknown> {

/*** async properties ***/
/**
* inflightBlock
*/
inflightBlock: Promise<unknown> | undefined;
/**
* inflightValue
*/
inflightValue: Promise<ElementValue<TNode>> | undefined;
/**
* enqueuedBlock
*/
enqueuedBlock: Promise<unknown> | undefined;
/**
* enqueuedValue
*/
enqueuedValue: Promise<ElementValue<TNode>> | undefined;
/**
* onavailable - A callback used in conjunction with the IsAvailable flag to
* onProps - A callback used in conjunction with the IsAvailable flag to
* implement the props async iterator. See the Symbol.asyncIterator method
* and the resumeCtxIterator function.
*/
onAvailable: Function | undefined;
onProps: ((props: Record<string, any>) => unknown) | undefined;
onPropsRequested: Function | undefined;
constructor(renderer: RendererImpl<TNode, TScope, TRoot, TResult>, root: TRoot | undefined, host: Retainer<TNode>, parent: ContextImpl<TNode, TScope, TRoot, TResult> | undefined, scope: TScope | undefined, ret: Retainer<TNode>);
}
declare const $ContextImpl: unique symbol;
declare const _ContextImpl: unique symbol;
/**

@@ -424,3 +413,3 @@ * A class which is instantiated and passed to every component as its this

*/
[$ContextImpl]: ContextImpl<unknown, unknown, unknown, TResult>;
[_ContextImpl]: ContextImpl<unknown, unknown, unknown, TResult>;
constructor(impl: ContextImpl<unknown, unknown, unknown, TResult>);

@@ -427,0 +416,0 @@ /**

export * from "./crank.js";
export { xm } from "./xm.js";
export { jsx } from "./tags.js";
/// <reference types="mod.d.ts" />
export { Context, Copy, Element, Fragment, Portal, Raw, Renderer, cloneElement, createElement, isElement } from './crank.js';
export { xm } from './xm.js';
export { jsx } from './tags.js';
//# sourceMappingURL=mod.js.map
{
"name": "@b9g/crank",
"version": "0.5.0-beta.2",
"version": "0.5.0-beta.3",
"description": "Write JSX-driven components with functions, promises and generators.",

@@ -53,9 +53,9 @@ "homepage": "https://crank.js.org",

"./package.json": "./package.json",
"./xm": {
"import": "./xm.js",
"require": "./xm.cjs"
"./jsx": {
"import": "./jsx.js",
"require": "./jsx.cjs"
},
"./xm.js": {
"import": "./xm.js",
"require": "./xm.cjs"
"./jsx.js": {
"import": "./jsx.js",
"require": "./jsx.cjs"
},

@@ -62,0 +62,0 @@ "./umd": {

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

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