@ndustrial/contxt-sdk
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -0,1 +1,13 @@ | ||
## [v0.0.26](http://github.com/ndustrialio/contxt-sdk-js/tree/v0.0.26) (2018-xx-xx) | ||
**Changed** | ||
* Set specific engine versions for Node and NPM | ||
* Audited and updated dependencies | ||
* Updated AssetAttributes#createValue to use an updated API endpoint | ||
**Fixed** | ||
* Fixed documentation building process to support Node 6 | ||
## [v0.0.25](http://github.com/ndustrialio/contxt-sdk-js/tree/v0.0.25) (2018-08-08) | ||
@@ -11,5 +23,8 @@ | ||
* Added `assetLabel` and `label` as fields associated with `AssetAttributeValues` | ||
* Added Events module with ability to create, read, update, and delete events | ||
**Changed** | ||
* Added `assetLabel` and `label` as fields associated with `AssetAttributeValues` | ||
## [v0.0.23](http://github.com/ndustrialio/contxt-sdk-js/tree/v0.0.23) (2018-08-01) | ||
@@ -16,0 +31,0 @@ |
@@ -174,3 +174,3 @@ <a name="AssetAttributes"></a> | ||
API Endpoint: '/assets/:assetId/values' | ||
API Endpoint: '/assets/:assetId/attributes/:assetAttributeId/values' | ||
Method: POST | ||
@@ -177,0 +177,0 @@ |
{ | ||
"name": "@ndustrial/contxt-sdk", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "", | ||
@@ -24,6 +24,11 @@ "main": "lib/index.js", | ||
"license": "ISC", | ||
"repository": "github:ndustrialio/contxt-sdk-js", | ||
"engines": { | ||
"npm": "^5.10.0 ^6.0.0", | ||
"node": ">=6" | ||
}, | ||
"dependencies": { | ||
"lodash.has": "^4.5.2", | ||
"lodash.isplainobject": "^4.0.6", | ||
"url-parse": "^1.2.0" | ||
"url-parse": "^1.4.3" | ||
}, | ||
@@ -54,3 +59,3 @@ "devDependencies": { | ||
"mocha": "^4.1.0", | ||
"nyc": "^11.4.1", | ||
"nyc": "^13.0.1", | ||
"prettier": "^1.12.1", | ||
@@ -57,0 +62,0 @@ "pretty-quick": "^1.4.1", |
@@ -310,3 +310,3 @@ import isPlainObject from 'lodash.isplainobject'; | ||
* | ||
* API Endpoint: '/assets/:assetId/values' | ||
* API Endpoint: '/assets/:assetId/attributes/:assetAttributeId/values' | ||
* Method: POST | ||
@@ -362,3 +362,8 @@ * | ||
return this._request | ||
.post(`${this._baseUrl}/assets/${assetId}/values`, data) | ||
.post( | ||
`${this._baseUrl}/assets/${assetId}/attributes/${ | ||
assetAttributeValue.assetAttributeId | ||
}/values`, | ||
data | ||
) | ||
.then((assetAttributeValue) => | ||
@@ -365,0 +370,0 @@ formatAssetAttributeValueFromServer(assetAttributeValue) |
@@ -562,3 +562,5 @@ import omit from 'lodash.omit'; | ||
expect(request.post).to.be.calledWith( | ||
`${expectedHost}/assets/${assetId}/values`, | ||
`${expectedHost}/assets/${assetId}/attributes/${ | ||
valueToServerBeforeFormat.assetAttributeId | ||
}/values`, | ||
valueToServerAfterFormat | ||
@@ -565,0 +567,0 @@ ); |
@@ -12,6 +12,5 @@ 'use strict'; | ||
function link(longname, options) { | ||
const linkedInfo = identifiers({ | ||
...options, | ||
hash: { id: longname } | ||
})[0]; | ||
const linkedInfo = identifiers( | ||
Object.assign({}, options, { hash: { id: longname } }) | ||
)[0]; | ||
@@ -18,0 +17,0 @@ if (linkedInfo && linkedInfo.kind === 'typedef') { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1298653
18335
Updatedurl-parse@^1.4.3