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

bean

Package Overview
Dependencies
Maintainers
0
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bean - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

.gitignore

5

bean.js
/*!
* bean.js - copyright @dedfat
* bean.js - copyright Jacob Thornton 2011
* https://github.com/fat/bean
* Follow our software http://twitter.com/dedfat
* MIT License

@@ -317,4 +316,4 @@ * special thanks to:

(module.exports = bean) :
(context.bean = bean);
(context['bean'] = bean);
}(this);

3

bean.min.js
/*!
* bean.js - copyright @dedfat
* bean.js - copyright Jacob Thornton 2011
* https://github.com/fat/bean
* Follow our software http://twitter.com/dedfat
* MIT License

@@ -6,0 +5,0 @@ * special thanks to:

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

require('../support/smoosh').config({
require('smoosh').config({
"JAVASCRIPT": {

@@ -11,3 +11,3 @@ "DIST_DIR": "./",

"boss": true,
"forin": true,
"forin": false,
"curly": true,

@@ -19,3 +19,3 @@ "debug": false,

"undef": false,
"sub": false,
"sub": true,
"white": true,

@@ -22,0 +22,0 @@ "indent": 2,

{
"name": "bean",
"description": "an events api for javascript",
"version": "0.1.6",
"version": "0.1.7",
"homepage": "https://github.com/fat/bean",

@@ -6,0 +6,0 @@ "authors": ["Jacob Thornton <@fat>"],

@@ -307,4 +307,4 @@ !function (context) {

(module.exports = bean) :
(context.bean = bean);
(context['bean'] = bean);
}(this);
/*!
* bean.js - copyright @dedfat
* bean.js - copyright Jacob Thornton 2011
* https://github.com/fat/bean
* Follow our software http://twitter.com/dedfat
* MIT License

@@ -6,0 +5,0 @@ * special thanks to:

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

!function () {
!function ($) {
var b = bean.noConflict(),

@@ -60,2 +60,2 @@ integrate = function (method, type, method2) {

$.ender(methods, true);
}();
}(ender);
{
"name": "sink-test",
"description": "test your javascript - headless, or in the browser",
"version": "0.0.4",
"version": "0.0.5",
"authors": ["Dustin Diaz <@ded>", "Jacob Thornton <@fat>"],

@@ -6,0 +6,0 @@ "keywords": ["testing", "unit tests", "headless", "boosh", "luke warm"],

@@ -8,4 +8,2 @@ Sink Test

It is used in other projects of mine such as [$script.js](http://github.com/polvero/script.js) and [Kizzy](http://github.com/polvero/kizzy) due to the async nature of dynamic script loading ($script) and asserting expired data from local storage (Kizzy).
How to write a Sink test

@@ -12,0 +10,0 @@ ------------------------

@@ -20,3 +20,3 @@ /*!

isHeadless ? (require('colors')) : !function () {
isHeadless ? (require('colors')) : String.prototype.__defineGetter__ && !function () {
each(['red', 'green', 'magenta', 'rainbow', 'yellow'], function (color) {

@@ -30,2 +30,5 @@ String.prototype.__defineGetter__(color, function () {

!isHeadless && window && !('console' in window) && !function () {
context.console = {log: function () {}};
}();

@@ -92,3 +95,3 @@ function reset() {

} else {
console && console.log((name + '...').yellow);
console.log((name + '...').yellow);
}

@@ -137,5 +140,5 @@

if (b) {
console && console.log((message + ' ✓').green);
console.log((message + ' ✓').green);
} else {
console && console.log((message + ' ✗').red);
console.log((message + ' ✗').red);
}

@@ -165,3 +168,11 @@ } else {

afterMethods = [];
console && console.log(('MODULE: ' + name).magenta);
var mod = ('MODULE: ' + name);
if (isHeadless) {
console.log(mod.magenta);
} else {
var li = document.createElement('li');
li.innerHTML = mod;
document.getElementById('tests').appendChild(li);
li.className = 'mod';
}
fn(test, ok, before, after);

@@ -179,10 +190,8 @@ currentSetName = name;

];
if (isHeadless) {
message = message[allPass ? 0 : 1].toUpperCase();
if (allPass) {
console && console.log(message.rainbow);
} else {
console && console.log(message.red);
}
}
var color = allPass ? 'rainbow' : 'red',
status = allPass ? 'sink-pass' : 'sink-failure';
message = message[allPass ? 0 : 1].toUpperCase();
isHeadless ?
console.log(message[color]) :
(document.getElementById('tests').className = status);
}();

@@ -189,0 +198,0 @@ }

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