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

@uxland/browser-utilities

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxland/browser-utilities - npm Package Compare versions

Comparing version 1.0.1-alpha.14 to 1.0.1-alpha.15

index.min.js

2

async/debounce.js

@@ -9,2 +9,2 @@ /**

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/import{timeOut as r}from"./time-out";class o{constructor(e=null,t=null,c=null){this.asyncModule=e;this.callback=t;this.handle=c}setConfig(e,t){this.asyncModule=e,this.callback=t,this.handle=this.asyncModule.run(()=>{this.handle=null,this.callback()})}cancel(){this.isActive()&&(this.asyncModule.cancel(this.handle),this.handle=null)}flush(){this.isActive()&&(this.cancel(),this.callback())}isActive(){return this.handle!=null}static debounce(e,t,c){return e instanceof o?e.cancel():e=new o,e.setConfig(t,c),e}}const f=n=>(e,t,c)=>{const s=c,a=s.value;s.value=(...l)=>(void 0).debouncer=o.debounce((void 0).debouncer,r.after(n),a.apply(l))},i=new Set,v=function(n){i.add(n)},y=function(){const n=Boolean(i.size);return i.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};export{o as Debouncer,f as debounce,v as enqueueDebouncer,y as flushDebouncers};
*/import{timeOut as r}from"./time-out";class o{constructor(e=null,n=null,c=null){this.asyncModule=e;this.callback=n;this.handle=c}setConfig(e,n){this.asyncModule=e,this.callback=n,this.handle=this.asyncModule.run(()=>{this.handle=null,this.callback()})}cancel(){this.isActive()&&(this.asyncModule.cancel(this.handle),this.handle=null)}flush(){this.isActive()&&(this.cancel(),this.callback())}isActive(){return this.handle!=null}static debounce(e,n,c){return e instanceof o?e.cancel():e=new o,e.setConfig(n,c),e}}const f=t=>(e,n,c)=>{const s=c,a=s.value;s.value=function(...l){return this.debouncer=o.debounce(this.debouncer,r.after(t),a.apply(l)),this.debouncer}},i=new Set,v=function(t){i.add(t)},y=function(){const t=Boolean(i.size);return i.forEach(e=>{try{e.flush()}catch(n){setTimeout(()=>{throw n})}}),t};export{o as Debouncer,f as debounce,v as enqueueDebouncer,y as flushDebouncers};

@@ -6,2 +6,14 @@ # Change Log

## [1.0.1-alpha.15](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.14...@uxland/browser-utilities@1.0.1-alpha.15) (2021-06-02)
### Bug Fixes
* add uglify ([112ff05](https://github.com/uxland/uxland/commit/112ff051f6344fbdff5d8c0e701256db78bb0d19))
* **browser-utilities:** solves build problem ([f1d479c](https://github.com/uxland/uxland/commit/f1d479c0e2b7ca22ddf04662526ba87a45c52cc4))
## [1.0.1-alpha.14](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.13...@uxland/browser-utilities@1.0.1-alpha.14) (2021-05-28)

@@ -8,0 +20,0 @@

{
"name": "@uxland/browser-utilities",
"version": "1.0.1-alpha.14",
"version": "1.0.1-alpha.15",
"description": "Browser Utilities",

@@ -8,3 +8,3 @@ "author": "Alex Vizcaino <avizcaino@uxland.es>",

"license": "BSD-4-Clause",
"main": "index",
"browser": "index.min.js",
"module": "index.js",

@@ -33,3 +33,5 @@ "types": "index.d.ts",

"build:es": "esbuild *.ts async/*.ts --minify --format=esm --outdir=.",
"build": "npm-run-all --parallel build:es build:dts",
"prebuild:uglify": "esbuild *.ts async/*.ts --minify --format=esm --outdir=./lib",
"build:uglify": "uglifyjs lib/**/*.js --compress --mangle --mangle-props --no-annotations -o index.min.js",
"build": "npm-run-all --parallel build:es build:dts build:uglify",
"prebuild": "echo nok > .buildstatus",

@@ -73,5 +75,6 @@ "postbuild": "echo ok > .buildstatus",

"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"typescript": "^4.0.2",
"uglify-js": "^3.13.8"
},
"gitHead": "d7865fb7de3b2d55c4d318ede098c05df2b265ae"
"gitHead": "1e580754e33ce951c3edfad5560d5ec661a2c25e"
}
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