Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dat-registry

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-registry - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

8

index.js

@@ -13,10 +13,10 @@ var Township = require('township-client')

// datproject.org defaults, specify opts.server and opts.apiPath to override
var SERVER = 'https://datproject.org'
// datbase.org defaults, specify opts.server and opts.apiPath to override
var SERVER = 'https://datbase.org'
var API_PATH = '/api/v1'
var apiPath = !opts.server || (opts.server.indexOf('datproject.org') > -1) ? API_PATH : opts.apiPath // only add default path to datproject.org server
var apiPath = !opts.server || (opts.server.indexOf('datbase.org') > -1) ? API_PATH : opts.apiPath // only add default path to datbase.org server
var townshipOpts = Object.assign({}, opts)
// set default township server & routes for datproject.org
// set default township server & routes for datbase.org
if (!townshipOpts.config) townshipOpts.config = {}

@@ -23,0 +23,0 @@ if (!townshipOpts.config.filename) townshipOpts.config.filename = '.datrc'

{
"name": "dat-registry",
"version": "3.1.0",
"version": "4.0.0",
"description": "dat registry api",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"deps": "dependency-check . && dependency-check . --extra --no-dev",
"test": "standard && npm run deps && echo \"Error: no tests\" && exit 0"
},

@@ -16,3 +17,3 @@ "repository": {

"registry",
"datproject.org",
"datbase.org",
"users",

@@ -32,3 +33,7 @@ "publish",

"xtend": "^4.0.1"
},
"devDependencies": {
"dependency-check": "^2.9.1",
"standard": "^10.0.3"
}
}
# dat-registry
API Registry Client for publishing dats. By default, the client is capable of registering, login, and publishing to datproject.org.
[![Build Status](https://travis-ci.org/datproject/dat-registry-client.svg?branch=master)](https://travis-ci.org/datproject/dat-registry-client)
API Registry Client for publishing dats. By default, the client is capable of registering, login, and publishing to datbase.org.
`dat-registry` allows users to interact with and publish dats to your registry via the `dat` command line. Supporting this module on your registry will allow a user to login and publish:

@@ -35,3 +37,3 @@

console.log('Published successfully!')
// Created a nickname for a dat at `https://datproject.org/karissa/animal-names`
// Created a nickname for a dat at `https://datbase.org/karissa/animal-names`
})

@@ -45,4 +47,4 @@ })

* `opts.server`: the registry server. Default is `https://datproject.org`
* `opts.apiPath`: registery server API path, e.g. we use `/api/v1` for datproject.org. This will overwrite default township routes to use server + apiPath.
* `opts.server`: the registry server. Default is `https://datbase.org`
* `opts.apiPath`: registery server API path, e.g. we use `/api/v1` for datbase.org. This will overwrite default township routes to use server + apiPath.
* `opts.config.filename`: defaults to `~.datrc` instead of township defaults.

@@ -49,0 +51,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc