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

@pelagiccreatures/sargasso

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pelagiccreatures/sargasso - npm Package Compare versions

Comparing version 0.5.16 to 0.5.17

16

lib/LazyBackground.js

@@ -43,9 +43,6 @@ /*

const offload = `onmessage = async event => {
const imageURL = event.data
const offload = `onmessage = async (e) => {
const imageURL = e.data
const response = await fetch(imageURL)
const blob = await response.blob()
// Send the image data to the UI thread!
self.postMessage(blob)

@@ -56,6 +53,9 @@ }`

const path = this.element.getAttribute('data-src')
const currentUrl = new URL(location.href)
const imgUrl = currentUrl.origin + path
let imgUrl = this.element.getAttribute('data-src')
// not fully qualified...
if (!imgUrl.match(/^http/)) {
imgUrl = new URL(imgUrl, location.href).href
}
this.workerPost('loader', imgUrl)

@@ -62,0 +62,0 @@ }

{
"name": "@pelagiccreatures/sargasso",
"version": "0.5.16",
"version": "0.5.17",
"description": "Simple, Fast, Reactive, supervised Javascript controllers for html elements.",

@@ -5,0 +5,0 @@ "keywords": [

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