Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "limes", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "limes authenticates users.", | ||
@@ -13,5 +13,10 @@ "contributors": [ | ||
"email": "matthias.wagler@thenativeweb.io" | ||
}, | ||
{ | ||
"name": "Hannes Leutloff", | ||
"email": "hannes.leutloff@thenativeweb.io" | ||
} | ||
], | ||
"main": "lib/Limes.js", | ||
"main": "build/lib/Limes.js", | ||
"types": "build/lib/Limes.d.ts", | ||
"dependencies": { | ||
@@ -21,5 +26,8 @@ "jsonwebtoken": "8.5.1" | ||
"devDependencies": { | ||
"assertthat": "3.0.0", | ||
"express": "4.17.0", | ||
"roboter": "6.1.0", | ||
"@types/express": "4.17.1", | ||
"@types/jsonwebtoken": "8.3.3", | ||
"@types/supertest": "2.0.8", | ||
"assertthat": "4.0.1", | ||
"express": "4.17.1", | ||
"roboter": "7.1.1", | ||
"supertest": "4.0.2" | ||
@@ -26,0 +34,0 @@ }, |
@@ -5,2 +5,12 @@ # limes | ||
## Status | ||
| Category | Status | | ||
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | ||
| Version | [![npm](https://img.shields.io/npm/v/limes)](https://www.npmjs.com/package/limes) | | ||
| Dependencies | ![David](https://img.shields.io/david/thenativeweb/limes) | | ||
| Dev dependencies | ![David](https://img.shields.io/david/dev/thenativeweb/limes) | | ||
| Build | [![CircleCI](https://img.shields.io/circleci/build/github/thenativeweb/limes)](https://circleci.com/gh/thenativeweb/limes/tree/master) | | ||
| License | ![GitHub](https://img.shields.io/github/license/thenativeweb/limes) | | ||
## Installation | ||
@@ -17,5 +27,11 @@ | ||
```javascript | ||
const Limes = require('limes'); | ||
const Limes = require('limes').default; | ||
``` | ||
If you use TypeScript, use the following code instead: | ||
```typescript | ||
import Limes from 'limes'; | ||
``` | ||
Now you need to create one or more identity providers. For each identity provider call the `Limes.IdentityProvider` constructor and hand over the `issuer` as well as a `privateKey` or a `certificate`, each in `.pem` format. Optionally, you may provide both: | ||
@@ -125,12 +141,1 @@ | ||
``` | ||
## License | ||
The MIT License (MIT) | ||
Copyright (c) 2014-2019 the native web. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
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
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
20634
11
402
139
7
2