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

envoy

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envoy - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

lib/envoy.js

@@ -93,3 +93,2 @@ (function () {

var self = this
, persistenceData
, files = []

@@ -112,9 +111,2 @@ , filter = function (item) {

else {
//Check if there is a persistence file in our sourcess
persistenceData = self.findPersistenceFile(files);
if(persistenceData) {
opts.persistenceData = persistenceData;
}
//Delegate to deployCollection

@@ -137,2 +129,4 @@ self.deployCollection(files, strategy, opts, cb);

sources = _.extend({}, sources);
//If we already have data just use it

@@ -139,0 +133,0 @@ if(opts.persistenceData) {

6

package.json

@@ -9,3 +9,7 @@ {

],
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "git://github.com/ben-ng/envoy.git"
},
"main": "./lib/envoy",

@@ -12,0 +16,0 @@ "dependencies": {

@@ -7,5 +7,5 @@ #Envoy

##Goals
* **Correctness:** Deployed sites should be exactly as they were on the local filesystem.
* **Speedy:** Perform the bare minimum number of operations without compromising correctness.
* **Simple:** One command should be all it takes to deploy to any service.
* **Correctness:** Deployed sites *have* to be perfect, every time. Test, test, test, and test some more.
* **Speed:** Perform the bare minimum number of operations without compromising correctness.
* **Simplicity:** One command should be all it takes to deploy to any service, and it should Just Work™.

@@ -12,0 +12,0 @@ ##Supported Services

@@ -23,2 +23,35 @@ var assert = require('assert')

tests[adapterName + ' deploy/undeploy empty collection'] = function (next) {
envoy.deployCollection({}, adapterName, opts[adapterName], function (err, log, hashes) {
assert.equal(err, null, err);
assert.deepEqual(log,['Adapter Opened','GET tests/.envoy','PUT tests/.envoy','Adapter Closed']);
//Reverse the deployment to delete the site
envoy.undeploy(adapterName, opts[adapterName], function (err, log) {
assert.equal(err, null, err);
assert.deepEqual(log,['Adapter Opened','GET tests/.envoy','PUT tests/.envoy','Adapter Closed']);
next();
});
});
};
tests[adapterName + ' deploy/undeploy simple collection'] = function (next) {
envoy.deployCollection(fixtures.collectionSite, adapterName, opts[adapterName], function (err, log, hashes) {
assert.equal(err, null, err);
assert.deepEqual(log,['Adapter Opened','GET tests/.envoy','PUT tests/.envoy',"PUT tests/siteroot/index.html",'Adapter Closed']);
//Reverse the deployment to delete the site
envoy.undeploy(adapterName, opts[adapterName], function (err, log) {
assert.equal(err, null, err);
assert.deepEqual(log,['Adapter Opened','GET tests/.envoy','PUT tests/.envoy',"DEL tests/siteroot/index.html",'Adapter Closed']);
next();
});
});
};
tests[adapterName + ' deploy/undeploy empty folder'] = function (next) {

@@ -25,0 +58,0 @@ envoy.deployFolder(fixtures.siteOne, adapterName, opts[adapterName], function (err, log, hashes) {

@@ -21,4 +21,4 @@ var fixtures = {

// A dotfile in a directory
, "fileSix" : {key:"test/.dotfile",data:"f"}
, "fileSixDiff" : {"test/.dotfile":"4a0a19218e082a343a1b17e5333409af9d98f0f5"}
, "fileSix" : {key:"test/.dotfile",data:"f"}
, "fileSixDiff" : {"test/.dotfile":"4a0a19218e082a343a1b17e5333409af9d98f0f5"}
// A website with no files

@@ -30,4 +30,6 @@ , "siteOne" : "./tests/fixtures/sites/1"

, "siteThree" : "./tests/fixtures/sites/3"
// A simple website as a collection
, "collectionSite" : {'siteroot/index.html': (new Buffer("<h1>It Worked!</h1>"))}
};
module.exports = fixtures;
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