sap-leonardo
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -5,2 +5,6 @@ # CHANGELOG | ||
## 0.5.6 | ||
- wrong API: Product Image Classification API | ||
- separate src and test | ||
## 0.5.5 | ||
@@ -7,0 +11,0 @@ - Inference Service for Customizable Object Detection |
@@ -26,3 +26,3 @@ "use strict"; | ||
}; | ||
const url = this.baseUrl + "/ml/imageclassification/classification"; | ||
const url = this.baseUrl + "/ml/prodimgclassifier/inference_sync"; | ||
request.post({ url, formData, headers }, (err, response, body) => { | ||
@@ -29,0 +29,0 @@ if (err) { |
{ | ||
"name": "sap-leonardo", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "NPM module for SAP Leonardo Machine Learning Foundation - Functional Services https://api.sap.com/package/SAPLeonardoMLFunctionalServices", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/tsc", | ||
"test": "npm run build && ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -s 10000 -t 10000 dist/test/test_*.js && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", | ||
"lint": "./node_modules/.bin/tslint src/**/*.ts && ./node_modules/.bin/eslint examples/*.js" | ||
"build": "./node_modules/.bin/tsc --sourceMap", | ||
"build-test": "./node_modules/.bin/tsc --build test/tsconfig.json", | ||
"build-all": "npm run build && npm run build-test", | ||
"test": "npm run build-all && ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -s 10000 -t 10000 dist/test/test_*.js && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", | ||
"coverage": "npm run build-all && ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report html -- -s 10000 -t 10000 dist/test/test_*.js", | ||
"lint": "./node_modules/.bin/tslint src/*.ts && ./node_modules/.bin/tslint test/*.ts && ./node_modules/.bin/eslint examples/*.js", | ||
"prepack": "rm -r dist; ./node_modules/.bin/tsc" | ||
}, | ||
@@ -50,4 +54,4 @@ "author": "Lars Gregori <github@larsgregori.de>", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.7.0", | ||
"istanbul": "^0.4.5", | ||
"eslint": "^5.8.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^5.2.0", | ||
@@ -54,0 +58,0 @@ "ts-node": "^7.0.1", |
@@ -28,3 +28,3 @@ # SAP Leonardo Machine Learning Foundation - Functional Services | ||
```javascript | ||
const leonardo = require('sap-leonardo'); | ||
const leonardo = require("sap-leonardo"); | ||
@@ -62,3 +62,3 @@ var imageclassification = new leonardo.Imageclassification("apiKey"); | ||
- [Inference Service for Language Detection](https://api.sap.com/api/language_detection_api/resource) | ||
- [Inference Service for Customizable Object Detection](https://api.sap.com/api/object_detection_api/resource) (not implemented) | ||
- ~~[Inference Service for Customizable Object Detection](https://api.sap.com/api/object_detection_api/resource)~~ | ||
- [Inference Service for Optical Character Recognition (OCR)](https://api.sap.com/api/ocr_api/resource) | ||
@@ -65,0 +65,0 @@ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
14
52158
38
846
1