Comparing version
{ | ||
"name": "anylogger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get a logger. Any logger.", | ||
"main": "anylogger.js", | ||
"module": "anylogger.esm.js", | ||
"types": "anylogger.d.ts", | ||
"src": "./anylogger.js", | ||
"main": "./anylogger.cjs.js", | ||
"module": "./anylogger.esm.js", | ||
"iife": "./anylogger.iife.js", | ||
"min": "./anylogger.min.js", | ||
"types": "./anylogger.d.ts", | ||
"spec": "./anylogger.spec.js", | ||
"files": [ | ||
"anylogger.js", | ||
"anylogger.d.ts", | ||
"anylogger.esm.js", | ||
"anylogger.umd.js", | ||
"anylogger.min.js", | ||
"anylogger.spec.js" | ||
"./anylogger.js", | ||
"./anylogger.cjs.js", | ||
"./anylogger.esm.js", | ||
"./anylogger.iife.js", | ||
"./anylogger.min.js", | ||
"./anylogger.d.ts", | ||
"./anylogger.spec.js", | ||
"./test.html" | ||
], | ||
"scripts": { | ||
"build": "npm run package -s && npm run minify -s && npm run docs -s", | ||
"build": "npm run test -s && npm run minify -s && npm run docs -s", | ||
"docs": "cross-env NODE_ENV=production node build.js docs", | ||
"minify": "cross-env NODE_ENV=production node build.js minify", | ||
"package": "cross-env NODE_ENV=production rollup -c", | ||
"prepare": "npm run test && npm run build", | ||
"test": "mocha anylogger.spec.js" | ||
"prepare": "npm run build", | ||
"test": "npm run package -s && mocha anylogger.spec.js" | ||
}, | ||
@@ -36,5 +42,5 @@ "author": "Stijn de Witt", | ||
"mocha": "^8.0.1", | ||
"rollup": "^2.17.1", | ||
"rollup": "^2.18.0", | ||
"sinon": "^9.0.2", | ||
"uglify-js": "^3.9.4" | ||
"uglify-js": "^3.10.0" | ||
}, | ||
@@ -56,2 +62,2 @@ "keywords": [ | ||
] | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# anylogger <sub><sup>1.0.0</sup></sub> | ||
# anylogger <sub><sup>1.0.1</sup></sub> | ||
### Get a logger. Any logger. | ||
@@ -106,3 +106,3 @@ | ||
A tiny ~[423](#gzip-size) bytes logging facade that you can include in your | ||
A tiny ~[390](#gzip-size) bytes logging facade that you can include in your | ||
library to have logging 'just work', while at the same time allowing | ||
@@ -114,3 +114,3 @@ application developers to plug in any logging framework they choose. | ||
or just abandoning logging altogether, choose `anylogger` and for just | ||
~[423](#gzip-size) bytes shared between all libraries doing this, we can | ||
~[390](#gzip-size) bytes shared between all libraries doing this, we can | ||
plug in any framework of our choice and all libraries will automatically | ||
@@ -128,6 +128,6 @@ start to use that framework. Wouldn't it be much better and easier? | ||
* [anylogger.js](https://unpkg.com/anylogger@1.0.0/anylogger.js) | ||
* [anylogger.js](https://unpkg.com/anylogger@1.0.1/anylogger.js) | ||
(fully commented source ~5kB) | ||
* [anylogger.min.js](https://unpkg.com/anylogger@1.0.0/anylogger.min.js) | ||
(minified 706 bytes, gzipped ~[423](#gzip-size) bytes) | ||
* [anylogger.min.js](https://unpkg.com/anylogger@1.0.1/anylogger.min.js) | ||
(minified 636 bytes, gzipped ~[390](#gzip-size) bytes) | ||
@@ -139,3 +139,3 @@ | ||
```html | ||
<script src="https://unpkg.com/anylogger@1.0.0/anylogger.min.js"></script> | ||
<script src="https://unpkg.com/anylogger@1.0.1/anylogger.min.js"></script> | ||
<script>(function(){ // IIFE | ||
@@ -517,3 +517,3 @@ var log = anylogger('index.html') | ||
Please have a look at the | ||
[source](https://unpkg.com/anylogger@1.0.0/anylogger.js) | ||
[source](https://unpkg.com/anylogger@1.0.1/anylogger.js) | ||
it should make it more clear how to write an adapter. Also consider studying | ||
@@ -520,0 +520,0 @@ the [available adapters](https://www.npmjs.com/search?q=keywords:anylogger) |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20720
-52.79%3
-66.67%0
-100%2
Infinity%