New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@-0/browser

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@-0/browser - npm Package Compare versions

Comparing version 0.3.15 to 0.3.16

25

lib/commands/FLIP.d.ts

@@ -1,22 +0,3 @@

export declare const cmd_flip_first: {
sub$: string;
args: ({ id, target }: {
id: any;
target: any;
}) => {
id: any;
target: any;
};
work: (args: any) => void;
};
export declare const cmd_flip_last_inverse_play: {
sub$: string;
args: ({ id, element }: {
id: any;
element: any;
}) => {
id: any;
element: any;
};
work: (args: any) => void;
};
import { ICommand } from "@-0/keys";
export declare const cmd_flip_first: ICommand;
export declare const cmd_flip_last_inverse_play: ICommand;

14

lib/commands/FLIP.js

@@ -8,3 +8,3 @@ import { Atom } from "@thi.ng/atom";

return {
radius: computedStyle.borderRadius || 0
radius: computedStyle.borderRadius || 0,
};

@@ -24,3 +24,3 @@ }

return getComputedStyle(element).transform || undefined;
}
},
};

@@ -31,3 +31,3 @@ }

rects: [S_path, "rects", uid],
elems: [S_path, "elems", uid]
elems: [S_path, "elems", uid],
});

@@ -59,3 +59,3 @@ const FLIP_all = (el, state, uid, frameDOMel = null) => {

clicks: [Z_path, "clicks", uid],
scrolls: [Z_path, "scroll", uid]
scrolls: [Z_path, "scroll", uid],
});

@@ -70,3 +70,3 @@ const FLIPFirst = ({ state, id, target }) => {

const zIndex = (el, idx) => (el.style.zIndex = idx);
const FLIPLastInvertPlay = ({ element, state, id, transition = "all .5s cubic-bezier(.54,-0.29,.17,1.11)" }) => {
const FLIPLastInvertPlay = ({ element, state, id, transition = "all .5s cubic-bezier(.54,-0.29,.17,1.11)", }) => {
element.setAttribute("flip", id);

@@ -115,3 +115,3 @@ const { rects, clicks, scrolls } = zoom_paths(id);

return console.warn(Err_missing_props("_FLIP_FIRST", props));
}
},
};

@@ -127,3 +127,3 @@ export const cmd_flip_last_inverse_play = {

return console.warn(Err_missing_props("_FLIP_LAST_INVERSE_PLAY", props));
}
},
};

@@ -1,2 +0,2 @@

import { HeadData } from "@-0/keys";
import { HeadData, ICommand } from "@-0/keys";
interface apiURL {

@@ -8,9 +8,3 @@ [URL_DATA: string]: {

export declare const injectHead: (args: apiURL) => void;
export declare const cmd_inject_head: {
sub$: string;
args: (acc: any) => {
URL_DATA: any;
};
work: (args: apiURL) => void;
};
export declare const cmd_inject_head: ICommand;
export {};

@@ -0,17 +1,6 @@

import { ICommand } from "@-0/keys";
export declare const navEventHandler: (ev: any) => any;
export declare const cmd_nav: any;
export declare const cmd_set_link_attrs_dom: {
sub$: string;
args: (acc: any) => any;
work: (acc: any) => void;
};
export declare const cmd_href_pushstate_dom: {
sub$: string;
args: (acc: any) => any;
work: (acc: any) => void;
};
export declare const cmd_notify_prerender_dom: {
sub$: string;
args: boolean;
work: () => boolean;
};
export declare const cmd_nav: ICommand;
export declare const cmd_set_link_attrs_dom: ICommand;
export declare const cmd_href_pushstate_dom: ICommand;
export declare const cmd_notify_prerender_dom: ICommand;

@@ -1,6 +0,6 @@

import { RouterCFG, Router } from "@-0/keys";
export declare const URL__ROUTE: (CFG: Router | RouterCFG) => any;
import { RouterCFG, Router, HOTask } from "@-0/keys";
export declare const URL__ROUTE: (CFG: Router | RouterCFG) => HOTask;
export declare const NOTIFY_PRERENDER_DOM: import("@-0/keys").Command;
export declare const SET_LINK_ATTRS_DOM: import("@-0/keys").Command;
export declare const HREF_PUSHSTATE_DOM: import("@-0/keys").Command;
export declare const URL_DOM__ROUTE: (CFG: Router | RouterCFG) => any;
export declare const URL_DOM__ROUTE: (CFG: Router | RouterCFG) => HOTask;

@@ -32,3 +32,3 @@ import { isPlainObject } from "@thi.ng/checks";

}
const subtask = acc => [
const subtask = (acc) => [
...preroute,

@@ -56,3 +56,3 @@ {

const match = URL__ROUTE(CFG);
const subtask = ACC => [
const subtask = (ACC) => [
SET_ROUTE_LOADING_TRUE,

@@ -59,0 +59,0 @@ Object.assign(Object.assign({}, HREF_PUSHSTATE_DOM), { [CMD_ARGS]: { [URL_FULL]: ACC[URL_FULL], [DOM_NODE]: ACC[DOM_NODE] } }),

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.3.15",
"version": "0.3.16",
"description": "Browser helpers for -0 state management, routing and the interaction between",

@@ -35,5 +35,5 @@ "main": "./lib/index.js",

"dependencies": {
"@-0/keys": "^0.3.13",
"@-0/utils": "^0.3.13",
"@-0/spool": "^0.3.11",
"@-0/keys": "^0.3.15",
"@-0/utils": "^0.3.15",
"@-0/spool": "^0.3.13",
"@thi.ng/paths": "^4.2.9",

@@ -53,4 +53,4 @@ "@thi.ng/rstream": "^6.0.10"

"@types/node": "^16.3.3",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"babel-jest": "^27.0.6",

@@ -57,0 +57,0 @@ "better-docs": "^2.3.2",

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