Comparing version 0.0.3 to 0.0.4
// follow @HenrikJoreteg and @andyet if you like this ;) | ||
(function (window) { | ||
var ls = window.localStorage, | ||
out = {}, | ||
inNode = typeof process !== 'undefined'; | ||
(function () { | ||
var inNode = typeof window === 'undefined', | ||
ls = !inNode && window.localStorage, | ||
out = {}; | ||
@@ -18,3 +18,3 @@ if (inNode) { | ||
fn = function () {}; | ||
while (l--) { | ||
@@ -29,2 +29,2 @@ out[methods[l]] = fn; | ||
} | ||
})(this); | ||
})(); |
@@ -1,5 +0,5 @@ | ||
var logger = require("./&log"); | ||
var logger = require("./andlog"); | ||
logger.log("hellow"); | ||
logger.log("hello"); | ||
console.log(logger); | ||
console.log(logger); |
{ | ||
"name": "andlog", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
"description": "Super-simple, client-side CommonJS logging thingy", | ||
"contributors": [ | ||
{ | ||
"name": "Philip Roberts", | ||
"email": "phil@latentflip.com" | ||
} | ||
], | ||
"main": "andlog.js", | ||
@@ -11,2 +17,2 @@ "repository": { | ||
} | ||
} | ||
} |
@@ -45,6 +45,6 @@ # &log | ||
If you're using this on the client but your project is in node.js you can install this with: https://github.com/henrikjoreteg/clientmodules and npm. | ||
If you're using this on the client but your project is in node.js you can install this with: [browserify](https://github.com/substack/node-browserify/) and npm. | ||
```javascript | ||
var logger = require('&log'); | ||
var logger = require('andlog'); | ||
@@ -63,3 +63,3 @@ logger.log('hello'); | ||
```javascript | ||
var console = require('&log'); | ||
var console = require('andlog'); | ||
@@ -73,2 +73,2 @@ console.log('hello'); | ||
If you like this, follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on the twitterwebz. | ||
If you like this, follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on the twitterwebz. |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
3117
28
72
0
1