azure-iot-common
Advanced tools
Comparing version 1.6.1-modules-preview.2 to 1.7.0-modules-preview.1
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /*! Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -120,4 +120,8 @@ /*! Copyright (c) Microsoft. All rights reserved. | ||
var sas = new SharedAccessSignature(); | ||
/*Codes_SRS_NODE_COMMON_SAS_06_002: [The `createWithSigningFunction` shall create a `SharedAccessSignature` object with an `sr` property formed by url encoding `credentials.host` + `/devices/` + `credentials.deviceId`.] */ | ||
sas.sr = authorization.encodeUriComponentStrict(credentials.host + '/devices/' + credentials.deviceId); | ||
/*Codes_SRS_NODE_COMMON_SAS_06_002: [The `createWithSigningFunction` shall create a `SharedAccessSignature` object with an `sr` property formed by url encoding `credentials.host` + `/devices/` + `credentials.deviceId` + `/modules/` + `credentials.moduleId`.] */ | ||
var resource = credentials.host + '/devices/' + credentials.deviceId; | ||
if (credentials.moduleId) { | ||
resource += "/modules/" + credentials.moduleId; | ||
} | ||
sas.sr = authorization.encodeUriComponentStrict(resource); | ||
/*Codes_SRS_NODE_COMMON_SAS_06_003: [** The `createWithSigningFunction` shall create a `SharedAccessSignature` object with an `se` property containing the value of the parameter `expiry`.] */ | ||
@@ -124,0 +128,0 @@ sas.se = expiry; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ // Copyright (c) Microsoft. All rights reserved. |
{ | ||
"name": "azure-iot-common", | ||
"version": "1.6.1-modules-preview.2", | ||
"version": "1.7.0-modules-preview.1", | ||
"description": "Common components shared by Azure IoT device and service SDKs", | ||
@@ -32,3 +32,3 @@ "author": "Microsoft Corporation", | ||
"test": "npm -s run lint && npm -s run build && npm -s run unittest", | ||
"check-cover": "istanbul check-coverage --statements 99 --branches 96 --functions 98 --lines 99" | ||
"check-cover": "istanbul check-coverage --statements 99 --branches 96 --functions 99 --lines 99" | ||
}, | ||
@@ -35,0 +35,0 @@ "engines": { |
@@ -0,0 +0,0 @@ #azure-iot-common |
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
103573
34
2546