azure-search
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -60,5 +60,6 @@ var http = require('https'); | ||
if (res.statusCode === 401) return cb("Unauthorised"); | ||
if (res.statusCode === 404) return cb("NotFound"); | ||
if (res.statusCode >= 500) return cb("Server Error"); | ||
if (res.statusCode === 401) return cb({code: res.statusCode, name:"Error", message:"Unauthorised"}); | ||
if (res.statusCode === 404) return cb({code: res.statusCode, name:"Error", message:"Not Found"}); | ||
if (res.statusCode >= 500) return cb({code: res.statusCode, name:"Error", message:"Server Error"}); | ||
if (res.statusCode >= 400) return cb({code: res.statusCode, name:"Error", message:"Bad Request"}); | ||
if (result) { | ||
@@ -65,0 +66,0 @@ try{ |
{ | ||
"name": "azure-search", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A client for the Azure Search service", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ # node-azure-search | ||
This modules call the Azure Search REST API. The documentation for the API is available [here](http://msdn.microsoft.com/library/azure/dn798935.aspx). | ||
This module call the Azure Search REST API. The documentation for the API is available [here](http://msdn.microsoft.com/library/azure/dn798935.aspx). | ||
@@ -47,2 +47,3 @@ ## Installation | ||
``` | ||
> Note that from the browser, you must have the `corsOptions` set in the index schema, and only `search`, `suggest`, `lookup` and `count` will work. | ||
@@ -49,0 +50,0 @@ A client object can then be used to create, update, list, get and delete indexes: |
Sorry, the diff of this file is not supported yet
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
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
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
138
0
2
15259
333