@cca-io/re-logger
Advanced tools
Comparing version 0.1.4 to 1.0.0
{ | ||
"name": "@cca-io/re-logger", | ||
"name": "re-logger", | ||
"namespace": true, | ||
"sources": ["src"], | ||
@@ -4,0 +5,0 @@ "reason": { |
{ | ||
"name": "@cca-io/re-logger", | ||
"version": "0.1.4", | ||
"version": "1.0.0", | ||
"description": "Simple logger library for Reason/BuckleScript apps", | ||
@@ -26,3 +26,2 @@ "main": "src/Logger.bs.js", | ||
"keywords": [ | ||
"react", | ||
"reason", | ||
@@ -29,0 +28,0 @@ "reasonml", |
@@ -9,9 +9,9 @@ # re-logger | ||
# yarn | ||
yarn add re-logger | ||
yarn add @cca-io/re-logger | ||
# or npm | ||
npm install re-logger | ||
npm install @cca-io/re-logger | ||
``` | ||
Then add re-logger to the dependencies in your bsconfig.json, e.g.: | ||
Then add re-logger to the dependencies in your `bsconfig.json`, e.g.: | ||
@@ -22,3 +22,3 @@ ``` | ||
... | ||
"bs-dependencies": ["reason-react", "re-logger"], | ||
"bs-dependencies": ["reason-react", "@cca-io/re-logger"], | ||
... | ||
@@ -28,2 +28,15 @@ } | ||
This library uses the namespace `ReLogger` to avoid conflicts if there is already a `Logger` module in your project. If that is not the case, you may want to open the `ReLogger` module globally in your `bsconfig.json`: | ||
``` | ||
{ | ||
"name": "my-app", | ||
... | ||
"bs-dependencies": ["reason-react", "@cca-io/re-logger"], | ||
... | ||
"bsc-flags": ["-bs-super-errors", "-open ReLogger"], | ||
... | ||
} | ||
``` | ||
## Usage | ||
@@ -34,2 +47,4 @@ | ||
```reason | ||
open ReLogger; /* unless you already opened it globally in bsconfig.json */ | ||
module Log = (val Logger.make(__MODULE__)); | ||
@@ -36,0 +51,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
60
1
6832
6
15