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.6.2 to 0.7.0

dist/sargasso.es.js.map

5

index.js

@@ -33,7 +33,2 @@ /*

import {
LazyBackground
}
from './lib/LazyBackground.js'
import {
startServices

@@ -40,0 +35,0 @@ }

2

lib/Sargasso.js

@@ -6,3 +6,3 @@ /**

define specific behavior. If you mutate the DOM in your code you
should use frames for best results. EG. LazyBackground
should use frames for best results.

@@ -9,0 +9,0 @@ @author Michael Rhodes (except where noted)

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

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

@@ -158,3 +158,3 @@ # @PelagicCreatures/Sargasso

| queueFrame(function) | queue a function to execute that changes the DOM |
| workerStart(id, codeOrURL) | start a web worker with id. Ignored if worker id already installed (see lib/LazyBackground.js for a shared worker example)|
| workerStart(id, codeOrURL) | start a web worker with id. Ignored if worker id already installed (see https://github.com/PelagicCreatures/flyingfish for a shared worker example)|
| workerPostMessage(id, data {}) | send the worker tagged with `id` a message. the message must be an object which can have any structure you want to pass to the worker |

@@ -308,18 +308,2 @@

Just run `rollup -c rollup.config.app.js` and you have an ES6 bundle which includes all your dependancies
### Example directory
To use Hijax you have to serve the files (window.popstate can't deal with file://...) so run SimpleHTTPServer in the project example directory to see demo pages which provide examples of how to integrate with html.
```
python -m localhost.py
```
There are 3 entry points:
`http://localhost:8000/index.html` - use ES6 example.js app bundled with sargasso
`http://localhost:8000/index-cjs.html` - use common js library from /dist
`http://localhost:8000/index-es.html` - use ES6 library from /dist
Run `rollup -c rollup.config.app.js` and you have an ES6 bundle which includes all your dependancies

@@ -9,3 +9,4 @@ import commonjs from '@rollup/plugin-commonjs'

format: 'es',
file: './dist/sargasso.es.js'
file: './dist/sargasso.es.js',
sourcemap: true
}],

@@ -12,0 +13,0 @@

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

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 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