Comparing version 0.0.2 to 0.0.3
@@ -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 @@ |
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
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