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

bobril

Package Overview
Dependencies
Maintainers
1
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bobril - npm Package Compare versions

Comparing version 20.5.1 to 20.5.2

16

CHANGELOG.md
# CHANGELOG
## 20.5.2
Fixed racecondition when after calling first b.init b.invalidated() could return false when bobril-g11n was asynchronously initializing.
## 20.5.1

@@ -229,3 +233,3 @@

Improved `anchor` and added `Anchor` TSX component. (Contrib by https://github.com/keeema)
Improved `anchor` and added `Anchor` TSX component. (Contrib by <https://github.com/keeema>)

@@ -268,5 +272,5 @@ ## 14.17.0

- report component lifecycle method durations into User Timing API
- results are available in the performance tab of devtools (e.g. 'timings' timelane in Chrome)
- have to be manually switched on in the code `b.setMeasureConfiguration()`, since the performance impact is not known
- report component lifecycle method durations into User Timing API
- results are available in the performance tab of devtools (e.g. 'timings' timelane in Chrome)
- have to be manually switched on in the code `b.setMeasureConfiguration()`, since the performance impact is not known

@@ -376,4 +380,4 @@ ## 14.10.0

- `IBobrilCacheNode` has now just read only fields as it was always intended. Events `onFocus`, `onBlur`, `onSelectionChange` bubble now.
- `bubble`, `broadcast`, `captureBroadcast` now type check `EventNames` and `EventParam<TName>`
- `IBobrilCacheNode` has now just read only fields as it was always intended. Events `onFocus`, `onBlur`, `onSelectionChange` bubble now.
- `bubble`, `broadcast`, `captureBroadcast` now type check `EventNames` and `EventParam<TName>`

@@ -380,0 +384,0 @@ Most event parameters now inherit from `IEventParam` which contains `target` of `IBobrilCacheNode` type.

{
"name": "bobril",
"version": "20.5.1",
"version": "20.5.2",
"description": "Component Oriented MVC Framework with virtual DOM and CSS",

@@ -49,2 +49,2 @@ "main": "index.js",

}
}
}

@@ -35,4 +35,4 @@ import { CSSStyles, CSSPseudoStyles, CSSStylesItem, CSSInlineStyles } from "./cssTypes";

"boxFlex boxFlexGroup columnCount flex flexGrow flexNegative flexPositive flexShrink fontWeight lineClamp lineHeight opacity order orphans strokeDashoffset widows zIndex zoom".split(
" "
)
" ",
),
);

@@ -120,3 +120,3 @@

newStyle: Record<string, string | number | undefined> | undefined,
oldStyle: Record<string, string | undefined> | undefined
oldStyle: Record<string, string | undefined> | undefined,
) {

@@ -156,3 +156,3 @@ var s = el.style;

c: IBobrilCacheNode,
inSvg: boolean
inSvg: boolean,
) {

@@ -174,3 +174,3 @@ if (isFunction(newStyle)) {

c: IBobrilCacheNode,
inSvg: boolean
inSvg: boolean,
) {

@@ -385,3 +385,3 @@ if (isFunction(newStyle)) {

(dynSprite.left * lastSpriteDppx) | 0,
(dynSprite.top * lastSpriteDppx) | 0
(dynSprite.top * lastSpriteDppx) | 0,
);

@@ -438,3 +438,3 @@ var stDef = allStyles[dynSprite.styleId]!;

dynSprite.left,
dynSprite.top
dynSprite.top,
);

@@ -694,3 +694,3 @@ var stDef = allStyles[dynSprite.styleId]!;

style: CSSStyles,
pseudoOrAttr?: CSSPseudoStyles
pseudoOrAttr?: CSSPseudoStyles,
): IBobrilStyleDef {

@@ -710,3 +710,3 @@ var res = styleDefEx(parent, style, pseudoOrAttr, name);

pseudoOrAttr?: CSSPseudoStyles,
nameHint?: string
nameHint?: string,
): IBobrilStyleDef {

@@ -790,3 +790,3 @@ nameHint = makeName(nameHint);

left: number,
top: number
top: number,
): string {

@@ -887,3 +887,3 @@ let [canvas, ctx] = createCanvas(width, height);

left?: number,
top?: number
top?: number,
): ColorlessSprite;

@@ -896,3 +896,3 @@ export function sprite(

left?: number,
top?: number
top?: number,
): IBobrilStyleDef;

@@ -906,3 +906,3 @@

left?: number,
top?: number
top?: number,
): IBobrilStyleDef {

@@ -951,3 +951,3 @@ assert(allStyles[url] === undefined, "Wrong sprite url");

spDef.left,
spDef.top
spDef.top,
);

@@ -993,3 +993,3 @@ spDef.left = 0;

colors: string | (() => string) | Record<string, string | (() => string)>,
size: number = 1
size: number = 1,
): IBobrilStyleDef {

@@ -1031,3 +1031,3 @@ var original = colorLessSpriteMap.get(id);

}),
size
size,
);

@@ -1058,3 +1058,3 @@ svgSprites.set(key, styleId);

content +
"</svg>"
"</svg>",
) +

@@ -1105,3 +1105,3 @@ '")';

left: number,
top: number
top: number,
): IBobrilStyleDef {

@@ -1108,0 +1108,0 @@ if (color == undefined) {

@@ -309,3 +309,3 @@ import {

_target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -371,3 +371,3 @@ var dnd = pointer2Dnd[ev.id];

_target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -396,3 +396,3 @@ var dnd = pointer2Dnd[ev.id];

_target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -420,3 +420,3 @@ var dnd = pointer2Dnd[ev.id];

_target: Node | undefined,
_node: IBobrilCacheNode | undefined
_node: IBobrilCacheNode | undefined,
): boolean {

@@ -423,0 +423,0 @@ var dnd = pointer2Dnd[ev.id];

@@ -17,3 +17,3 @@ import { IBobrilCacheChildren, IBobrilNode } from "./core";

export function setBeforeRender(
callback: (node: IBobrilNode, phase: RenderPhase) => void
callback: (node: IBobrilNode, phase: RenderPhase) => void,
): (node: IBobrilNode, phase: RenderPhase) => void {

@@ -38,3 +38,3 @@ var res = beforeRenderCallback;

export function setAfterFrame(
callback: (root: IBobrilCacheChildren | null) => void
callback: (root: IBobrilCacheChildren | null) => void,
): (root: IBobrilCacheChildren | null) => void {

@@ -41,0 +41,0 @@ var res = afterFrameCallback;

@@ -61,3 +61,3 @@ type RuleBehaviourType = "not" | "only";

behaviour?: T,
mediaType?: T extends undefined ? undefined : MediaType
mediaType?: T extends undefined ? undefined : MediaType,
) {

@@ -64,0 +64,0 @@ !!behaviour && this.tokens.push({ type: behaviour });

@@ -128,3 +128,3 @@ import {

name: string,
callback: (ev: any, target: Node | undefined, node: IBobrilCacheNode | undefined) => boolean
callback: (ev: any, target: Node | undefined, node: IBobrilCacheNode | undefined) => boolean,
) {

@@ -147,3 +147,3 @@ addEvent(name, 5, callback);

target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -188,3 +188,3 @@ target = ev.target as Node;

target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -224,3 +224,3 @@ var preventDef = false;

target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -280,3 +280,3 @@ target = ev.target as Node;

return invokeMouseOwner(onName, ev) || bubble(node, onName as EventNames, ev) != undefined;
}
},
);

@@ -381,3 +381,3 @@ })(pointersEventNames[j]!);

_target: Node | undefined,
_node: IBobrilCacheNode | undefined
_node: IBobrilCacheNode | undefined,
): boolean {

@@ -402,3 +402,3 @@ if (firstPointerDown === -1 && noPointersDown()) {

target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -447,3 +447,3 @@ // Browser forgot to send mouse up? Let's fix it

target: Node | undefined,
node: IBobrilCacheNode | undefined
node: IBobrilCacheNode | undefined,
): boolean {

@@ -473,3 +473,3 @@ delete pointersDown[ev.id];

_target: Node | undefined,
_node: IBobrilCacheNode | undefined
_node: IBobrilCacheNode | undefined,
): boolean {

@@ -476,0 +476,0 @@ delete pointersDown[ev.id];

@@ -176,3 +176,3 @@ import {

}
}
},
);

@@ -325,3 +325,3 @@

}
})(nodesArray, setterOfNodesArray.length)
})(nodesArray, setterOfNodesArray.length),
);

@@ -534,3 +534,3 @@ }

runTransition(
(data.replace ? createRedirectReplace : createRedirectPush)(data.name, data.params, data.state)
(data.replace ? createRedirectReplace : createRedirectPush)(data.name, data.params, data.state),
);

@@ -547,3 +547,3 @@ return true;

: [data.style, activeStyleDef]
: data.style
: data.style,
);

@@ -685,3 +685,3 @@ }

rootRoutes,
out
out,
) || [];

@@ -780,3 +780,3 @@ } else {

params?: Params,
onAnchor?: (el: HTMLElement) => boolean
onAnchor?: (el: HTMLElement) => boolean,
): IBobrilNode {

@@ -802,3 +802,3 @@ return {

params?: Params,
onAnchor?: (el: HTMLElement) => boolean
onAnchor?: (el: HTMLElement) => boolean,
) {

@@ -805,0 +805,0 @@ let routeName: string | undefined;

@@ -5,3 +5,3 @@ function polarToCartesian(

radius: number,
angleInDegrees: number
angleInDegrees: number,
): { x: number; y: number } {

@@ -21,3 +21,3 @@ var angleInRadians = (angleInDegrees * Math.PI) / 180.0;

endAngle: number,
startWithLine: boolean
startWithLine: boolean,
) {

@@ -63,3 +63,3 @@ var absDeltaAngle = Math.abs(endAngle - startAngle);

startAngle: number,
endAngle: number
endAngle: number,
): string {

@@ -66,0 +66,0 @@ var p = svgDescribeArc(x, y, radiusBig, startAngle, endAngle, false);

@@ -27,3 +27,3 @@ import {

props: string[] = [],
events?: { [name: string]: string }
events?: { [name: string]: string },
): (data?: TData) => IBobrilNode {

@@ -30,0 +30,0 @@ props = ["id", "slot", ...props];

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