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

infect

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infect - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

2

infect.js
/* ========================================================================
* infect.js v0.3.2
* infect.js v0.3.3
* Dependency injection for any web project

@@ -4,0 +4,0 @@ *

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

// infect.js v0.3.2 (2013-12-03) //
// infect.js v0.3.3 (2013-12-03) //
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.infect=b()}(this,function(){function a(a){return/ (.*)]/.exec(Object.prototype.toString.call(a))[1]}function b(b){var c,d=[].slice.call(arguments,1),e="";for(c=0;c<d.length;c++)e+=e.length>0?", "+a(d[c]):a(d[c]);throw i+"Invalid call to infect."+b+"("+e+")"}function c(c,d){"String"===a(c)&&"Undefined"!==a(d)&&d instanceof Object?(c=0===c.indexOf(h)?c.substr(h.length):c,g[c]=d):b("set",c,d)}function d(c){return"String"===a(c)?(c=0===c.indexOf(h)?c.substr(h.length):c,g[c]||void 0):(b("get",c),void 0)}function e(c,e){var f,g;if("Object"===a(c)&&e instanceof Array){for(g=e.length;g--;)f=e[g],f=0===f.indexOf(h)?f.substr(h.length):f,c[h+f]=d(f);return c}b("obj",c,e)}function f(c,e){var f,g,j,k,l;if("Function"===a(c)){for(e=e||{},j=/\(([^)]+)/.exec(c.toString()),j=null!==j?j[1]:"",j&&(j=j.split(/\s*,\s*/)),f=k=j.length;f--;){if(g=j[f],0!==g.indexOf(h)){j=j.slice(f+1);break}j[f]=d(g)||g}return l=function(){var b=[].slice.call(arguments),g=b.length+j.length,h=e;for(this instanceof l&&(h=this);k>g;g++)b.push(void 0);for(f=j.length;f--;)"String"===a(j[f])&&(j[f]=d(j[f]));if(g>k)throw i+"Too many parameters! I expected "+(k-j.length)+" (or less) but got "+b.length;return b=b.concat(j),c.apply(h,b)},l.prototype=c.prototype,l.prototype.constructor=l,l}b("func",c,e)}var g={},h="$",i=" == infect.js => ";return{set:c,get:d,obj:e,func:f,funk:f}});
{
"name": "infect",
"version": "0.3.2",
"version": "0.3.3",
"license": "MIT",
"description": "Infect.js is a simple way to add the magic of dependency injection to any web project, regardless of the framework on which you choose to write your application. It's infectiously simple!",
"author": "Andrew Worcester <andrew@amwmedia.com> (http://blog.amwmedia.com/)",
"main": "infect.js",
"author": {
"name": "Andrew Worcester",
"email": "andrew@amwmedia.com",
"url": "http://blog.amwmedia.com"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-uglify": "~0.2.2",

@@ -13,0 +15,0 @@ "grunt-contrib-qunit": "~0.3.0",

@@ -11,2 +11,6 @@ # Infect.js

# Installation
Download: [Source](https://raw.github.com/amwmedia/infect.js/master/infect.js) | [Minified](https://raw.github.com/amwmedia/infect.js/master/infect.min.js)
NPM: `npm install infect`
# Getting Started

@@ -13,0 +17,0 @@ ### Registering a dependency

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