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

dadata

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dadata - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

index.js

@@ -58,3 +58,3 @@ 'use strict';

// service constructor
function Dadata (API_KEY, SECRET_KEY) {
function DaData (API_KEY, SECRET_KEY) {

@@ -68,4 +68,4 @@ // fail if no keys provided

// don't fail if someone have forgotten about new
else if (!(this instanceof Dadata))
return new Dadata(API_KEY, SECRET_KEY);
else if (!(this instanceof DaData))
return new DaData(API_KEY, SECRET_KEY);

@@ -93,2 +93,2 @@ // ok

// exports
module.exports = Dadata;
module.exports = DaData;
{
"name": "dadata",
"version": "0.0.2",
"version": "0.0.3",
"description": "REST API for dadata.ru",

@@ -5,0 +5,0 @@ "keywords": "address, birthdate, email, name, phone, parsing, suggestions",

@@ -19,5 +19,5 @@ # node-dadata

```javascript
var Dadata = require('dadata'),
dadata_account_1 = new Dadata('<API_KEY_1>', '<SECRET_KEY_1>'),
dadata_account_2 = new Dadata('<API_KEY_2>', '<SECRET_KEY_2>');
var DaData = require('dadata'),
dadata_account_1 = new DaData('<API_KEY_1>', '<SECRET_KEY_1>'),
dadata_account_2 = new DaData('<API_KEY_2>', '<SECRET_KEY_2>');
```

@@ -24,0 +24,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