dat-registry
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -13,5 +13,5 @@ var Township = require('township-client') | ||
var api = server + '/api/v1' | ||
var township = Township({ | ||
server: api | ||
}) | ||
var township = Township(xtend(opts, { | ||
server: api // used over opts.server | ||
})) | ||
return { | ||
@@ -18,0 +18,0 @@ login: township.login.bind(township), |
{ | ||
"name": "dat-registry", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "dat registry api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# dat-registry-client | ||
API Registry Client for publishing dats | ||
API Registry Client for publishing dats. | ||
## Installation | ||
``` | ||
npm install dat-registry | ||
``` | ||
### Quick Example | ||
@@ -31,4 +37,20 @@ | ||
* `opts.server`: the server to query. Default is `https://datproject.org` | ||
* `opts.server`: the server to query. Default is `https://datproject.org/api/v1` | ||
Other options are passed to [township-client](https://github.com/township/township-client), these include: | ||
```js | ||
opts = { | ||
config: { | ||
filename: '.townshiprc', // configuration filename (stored in os homedir) | ||
filepath: '~/.townshiprc' // specify a full config file path | ||
}, | ||
routes: { // routes for ALL township servers used by client | ||
register: '/register', | ||
login: '/login', | ||
updatePassword: '/updatepassword' | ||
} | ||
} | ||
``` | ||
#### `registry.login(data, cb)` | ||
@@ -35,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6749
89
5
2