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

anvil.js

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anvil.js - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

demo/libery/intermediate.min.gz.js

1

demo/lib/parent.js

@@ -13,3 +13,2 @@ (function(context) {

alert("LOOK AT ME!")
})(this);
(function(context) {
var Test1 = function() {
this.sayHi = function() { console.log( "Hi." ); };
this.sayHi = function() { console.log( "Hi. Test1 anyone?" ); };
};
var Test2 = function() {
this.sayHi = function() { console.log( "Hi." ); };
this.sayHi = function() { console.log( "Hi. I am Test #2. How do you do?" ); };
this.someProp = "Howdy Neighbor";
};
var test1 = new Test1();
console.log("Hai! Test2 here in the flesh...yet again, oh yay!");
context.test1 = new Test1();
test1.sayHi();
var test2 = new Test2();
context.test2 = new Test2();
test2.sayHi();
alert("LOOK AT ME!")
})(this);

@@ -1,1 +0,1 @@

�U�xN�H+�K.����HԬ.K,RH���hV�dd�'Vzd"�&�������k(yd�)i���$��/�6/�\!�:�^C��T�h�u*LT'1'��DC����[�1D��U�]Sd�&*9 �
���{N��Aj�0E��n$�z[L�Φt� ���%p4�RD��+$�ۮf�ox�чsr���\hF�>s�>$��t�5$&��M2j��oN��D�*�,v��e:V��N.� ��oc�ڻF��5˩U��}�'���2��㯐�������3'�+�A#�h!��FK.����/�m����5� �5��v3��=L

@@ -1,1 +0,1 @@

(function(a){var b=function(){this.sayHi=function(){console.log("Hi.")}},c=function(){this.sayHi=function(){console.log("Hi.")}},d=new b;d.sayHi();var e=new c;e.sayHi(),alert("LOOK AT ME!")})(this)
(function(a){var b=function(){this.sayHi=function(){console.log("Hi. Test1 anyone?")}},c=function(){this.sayHi=function(){console.log("Hi. I am Test #2. How do you do?")},this.someProp="Howdy Neighbor"};console.log("Hai! Test2 here in the flesh...yet again, oh yay!"),a.test1=new b,test1.sayHi(),a.test2=new c,test2.sayHi()})(this)

@@ -7,3 +7,16 @@ QUnit.specify("demo.js", function() {

});
it("should show something **really** {{ SPECIAL }} on the page", function()
{
assert(true).equals(true);
});
it("should appreciate the fact that 11 === 11", function()
{
assert(11).equals(11);
});
});
});
describe("Test2 stuff", function() {
it("should have the someProp value set", function() {
assert(window.test2.someProp).equals("Howdy Neighbor");
});
});
});
var Test1 = function() {
this.sayHi = function() { console.log( "Hi." ); };
this.sayHi = function() { console.log( "Hi. Test1 anyone?" ); };
};
var Test2 = function() {
this.sayHi = function() { console.log( "Hi." ); };
};
this.sayHi = function() { console.log( "Hi. I am Test #2. How do you do?" ); };
this.someProp = "Howdy Neighbor";
};
console.log("Hai! Test2 here in the flesh...yet again, oh yay!");
//import("intermediate.js");
var test1 = new Test1();
context.test1 = new Test1();
test1.sayHi();
var test2 = new Test2();
context.test2 = new Test2();
test2.sayHi();
alert("LOOK AT ME!")

@@ -407,3 +407,35 @@ var ArgParser, builder, coffeeScript, colors, dive, emitter, events, express, fs, gzipper, jslint, jsp, mkdir, path, pro, resource, _;

});
var buildHead, buildScripts, createPage, hostPavlov;
var ClientNotifier, buildHead, buildScripts, clientNotifier, createPage, hostPavlov;
ClientNotifier = (function() {
var clients;
function ClientNotifier() {}
clients = [];
ClientNotifier.prototype.init = function(app) {
var io;
io = require('socket.io').listen(app);
io.set('log level', 1);
return io.sockets.on('connection', this.addClient);
};
ClientNotifier.prototype.addClient = function(socket) {
clients.push(socket);
return socket.on("end", function() {
var i;
i = clients.indexOf(socket);
return clients.splice(i, 1);
});
};
ClientNotifier.prototype.notifyClients = function() {
var i, _results;
onEvent("Notifying Browser Test Runner Clients");
i = 0;
_results = [];
while (i < clients.length) {
clients[i].emit("runTests", {});
_results.push(i++);
}
return _results;
};
return ClientNotifier;
})();
clientNotifier = new ClientNotifier;
createPage = function() {

@@ -446,3 +478,4 @@ var extPath, libPath, specPath;

return writeFileSync("index.html", page.toString(), function() {
return onEvent("Pavlov test page generated");
onEvent("Pavlov test page generated");
return clientNotifier.notifyClients();
});

@@ -453,3 +486,3 @@ });

buildHead = function(html, list) {
var jQueryJS, pavlovDir, pavlovJS, qunitCSS, qunitJS;
var jQueryJS, pavlovDir, pavlovJS, qunitCSS, qunitJS, scktHook, socketIo;
pavlovDir = "pavlov";

@@ -460,2 +493,4 @@ qunitCSS = pavlovDir + "/qunit.css";

pavlovJS = pavlovDir + "/pavlov.js";
socketIo = "/socket.io/socket.io.js";
scktHook = pavlovDir + "/socketHook.js";
return html.HEAD(html.LINK({

@@ -475,2 +510,8 @@ rel: "stylesheet",

src: pavlovJS
}), html.SCRIPT({
type: "text/javascript",
src: socketIo
}), html.SCRIPT({
type: "text/javascript",
src: scktHook
}), buildScripts(html, list));

@@ -495,2 +536,3 @@ };

app.use(app.router);
clientNotifier.init(app);
app.use("/", express.static(path.resolve(".")));

@@ -822,21 +864,30 @@ app.get("*.coffee", function(req, res) {

createWatch = function() {
var continuous, onChange;
var continuous, dir, divedir, onChange, _i, _len, _ref, _results;
continuous = false;
onChange = triggerProcess;
return dive(config.source, {
recursive: false,
all: false
}, function(err, file) {
if (!err) {
return fs.watchFile(file, {
persistent: true
}, function(c, p) {
var callback;
onEvent("Change in " + file + " detected. Rebuilding...");
callback = onChange;
onChange = function() {};
return callback();
});
}
});
divedir = function(dir) {
return dive(dir, {
recursive: false,
all: false
}, function(err, file) {
if (!err) {
return fs.watchFile(file, {
persistent: true
}, function(c, p) {
var callback;
onEvent("Change in " + file + " detected. Rebuilding...");
callback = onChange;
onChange = function() {};
return callback();
});
}
});
};
_ref = [config.source, config.spec, config.ext];
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
dir = _ref[_i];
_results.push(divedir(dir));
}
return _results;
};

@@ -843,0 +894,0 @@ triggerProcess = function() {

{
"name": "anvil.js",
"description": "Static javascript / coffeescript build utility",
"version": "0.5.0",
"version": "0.5.1",
"authors": ["Alex Robson <@A_Robson>"],

@@ -27,3 +27,4 @@ "keywords": ["build","compile","static"],

"dive": "0.0.3",
"argparser": "0.0.9"
"argparser": "0.0.9",
"socket.io": ">=0.8.4"
},

@@ -30,0 +31,0 @@ "preferGlobal": true,

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

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