Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "activist", | ||
"description": "resilience to network interference", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/willscott/activist", | ||
"main": "activist.js", | ||
"main": "express.js", | ||
"browser": "activist.js", | ||
@@ -36,3 +36,9 @@ "bugs": { | ||
"webdriverio": "^2.4.5" | ||
}, | ||
"dependencies": { | ||
"browserify": "^10.2.4", | ||
"etag": "^1.7.0", | ||
"fresh": "^0.3.0", | ||
"parseurl": "^1.3.0" | ||
} | ||
} |
activist.js | ||
=========== | ||
activist.js is a [freedom.js](http://freedomjs.com) application for loading | ||
content through peers when a server is unavailable. | ||
activist.js is a standalone library for making your site resilient to unexpected | ||
network events. | ||
Activist comes in 2 versions, which offer a trade-off between how much work you | ||
need to do to add the library to your site, and how many of your users will be | ||
able to take advantage of activist.js. New browsers provide features that make | ||
able to take advantage of the work. New browsers provide features that make | ||
the installation of activist.js as simple as adding a script tag to your home | ||
page, however this version of the library will only work for a small percentage | ||
of your user base. If you are willing to use activist in addition to an app | ||
cache, it will be able to help a much larger fraction of your user base, but | ||
requires additional changes to your site. | ||
of your user base (up-to-date chrome users). Activist also is packaged with a | ||
drop-in application cache manifst, which will extend the benefit to most users, | ||
but can require wider site changes. | ||
@@ -19,3 +19,3 @@ Deploying | ||
1. Add activist.js | ||
1. Add `activist.js` to your site. | ||
@@ -26,8 +26,7 @@ ```html | ||
2. Add Offline Cache (recommended) | ||
Adding an application cache manifest will allow activist.js to run on many | ||
more browsers, and is strongly recommended. Adding this cache is a 2 step | ||
process. First, modify the ```html``` tag of your entry pages to reference | ||
Adding an application cache manifest will allow activist.js to run on most | ||
browsers, and is strongly recommended. Adding this cache is a 2 step | ||
process. First, modify the ```html``` tag of your pages to reference | ||
the cache. It should look something like this: | ||
@@ -39,15 +38,10 @@ | ||
Sample appcaches are provided in the documentation of this repository. | ||
The following is a minimal configuration for activating your hope page: | ||
A sample appcache is available on [activistjs.com](http://activistjs.com). | ||
``` | ||
CACHE MANIFEST | ||
/ | ||
/activist.js | ||
``` | ||
Note that the application cache should be served with the mime type | ||
of 'text/cache-manifest'. More information on the application cache | ||
mechanics are available on the [w3 website](http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html). | ||
The application cache needs to be served with the mime type of | ||
'text/cache-manifest' to work on old versions of internet explorer. | ||
More information on application cache mechanics are available on the | ||
[w3 website](http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html). | ||
How? | ||
@@ -54,0 +48,0 @@ ---- |
@@ -39,3 +39,3 @@ /*jslint node:true*/ | ||
var iframe = document.createElement('iframe'); | ||
iframe.src = 'activist-frame.html'; | ||
iframe.src = require('./config').frame; | ||
iframe.style.display = 'none'; | ||
@@ -48,3 +48,4 @@ document.body.appendChild(iframe); | ||
console.log("Registering service worker."); | ||
fetchHandler.register(['activist-offline.html', 'activist.js']); | ||
var config = require('./config'); | ||
fetchHandler.register([config.offline, config.url]); | ||
}; | ||
@@ -51,0 +52,0 @@ |
@@ -6,2 +6,4 @@ /*jslint node:true*/ | ||
exports.url = '/activist.js'; | ||
exports.frame = '/activist-frame.html'; | ||
exports.offline = '/activist-offline.html'; | ||
exports.message = 'Your connection to this site was disrupted by your network. Consider an alternative method of access.'; | ||
@@ -8,0 +10,0 @@ exports.service = 'https://www.sitestat.us/status.js?l='; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59500
31
1210
4
68
5
+ Addedbrowserify@^10.2.4
+ Addedetag@^1.7.0
+ Addedfresh@^0.3.0
+ Addedparseurl@^1.3.0
+ AddedBase64@0.2.1(transitive)
+ AddedJSONStream@1.3.5(transitive)
+ Addedacorn@4.0.135.7.47.4.1(transitive)
+ Addedacorn-node@1.8.2(transitive)
+ Addedacorn-walk@7.2.0(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedasn1.js@4.10.1(transitive)
+ Addedassert@1.3.0(transitive)
+ Addedastw@2.2.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase64-js@0.0.8(transitive)
+ Addedbn.js@4.12.15.2.1(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbrowser-pack@5.0.1(transitive)
+ Addedbrowser-resolve@1.11.3(transitive)
+ Addedbrowserify@10.2.6(transitive)
+ Addedbrowserify-aes@1.2.0(transitive)
+ Addedbrowserify-cipher@1.0.1(transitive)
+ Addedbrowserify-des@1.0.2(transitive)
+ Addedbrowserify-rsa@4.1.1(transitive)
+ Addedbrowserify-sign@4.2.3(transitive)
+ Addedbrowserify-zlib@0.1.4(transitive)
+ Addedbuffer@3.6.2(transitive)
+ Addedbuffer-xor@1.0.3(transitive)
+ Addedbuiltins@0.0.7(transitive)
+ Addedcipher-base@1.0.6(transitive)
+ Addedcombine-source-map@0.6.1(transitive)
+ Addedcommondir@0.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.4.11(transitive)
+ Addedconsole-browserify@1.2.0(transitive)
+ Addedconstants-browserify@0.0.1(transitive)
+ Addedconvert-source-map@1.1.3(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcreate-ecdh@4.0.4(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedcreate-hmac@1.1.7(transitive)
+ Addedcrypto-browserify@3.12.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddeps-sort@1.3.9(transitive)
+ Addeddes.js@1.1.0(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addeddiffie-hellman@5.0.3(transitive)
+ Addeddomain-browser@1.1.7(transitive)
+ Addedduplexer2@0.0.2(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedevents@1.0.2(transitive)
+ Addedevp_bytestokey@1.0.3(transitive)
+ Addedfresh@0.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@4.5.3(transitive)
+ Addedhas@1.0.4(transitive)
+ Addedhash-base@3.0.5(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedhtmlescape@1.1.1(transitive)
+ Addedhttp-browserify@1.7.0(transitive)
+ Addedhttps-browserify@0.0.1(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedindexof@0.0.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.12.0.32.0.4(transitive)
+ Addedinline-source-map@0.5.0(transitive)
+ Addedinsert-module-globals@6.6.3(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedjson-stable-stringify@0.0.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedjsonparse@1.3.1(transitive)
+ Addedlabeled-stream-splicer@1.0.2(transitive)
+ Addedlexical-scope@1.2.0(transitive)
+ Addedlodash.memoize@3.0.4(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addedmiller-rabin@4.0.1(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addedminimatch@2.0.10(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmodule-deps@3.9.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedos-browserify@0.1.2(transitive)
+ Addedpako@0.2.9(transitive)
+ Addedparents@1.0.1(transitive)
+ Addedparse-asn1@5.1.7(transitive)
+ Addedparseurl@1.3.3(transitive)
+ Addedpath-browserify@0.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-platform@0.11.15(transitive)
+ Addedpbkdf2@3.1.2(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpublic-encrypt@4.0.3(transitive)
+ Addedpunycode@1.3.21.4.1(transitive)
+ Addedquerystring@0.2.0(transitive)
+ Addedquerystring-es3@0.2.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedrandomfill@1.0.4(transitive)
+ Addedread-only-stream@1.1.1(transitive)
+ Addedreadable-stream@1.0.341.1.142.3.8(transitive)
+ Addedreadable-wrap@1.0.0(transitive)
+ Addedresolve@1.1.71.22.8(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedshasum@1.0.2(transitive)
+ Addedshell-quote@0.0.1(transitive)
+ Addedsource-map@0.4.4(transitive)
+ Addedstream-browserify@1.0.0(transitive)
+ Addedstream-combiner2@1.0.2(transitive)
+ Addedstream-splicer@1.3.2(transitive)
+ Addedstring_decoder@0.10.311.1.1(transitive)
+ Addedsubarg@1.0.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsyntax-error@1.4.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedthrough2@0.5.11.1.1(transitive)
+ Addedtimers-browserify@1.4.2(transitive)
+ Addedtty-browserify@0.0.1(transitive)
+ Addedtypedarray@0.0.7(transitive)
+ Addedumd@3.0.3(transitive)
+ Addedurl@0.10.3(transitive)
+ Addedutil@0.10.30.10.4(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvm-browserify@0.0.4(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxtend@3.0.04.0.2(transitive)