@dazn/kopytko-framework 3.3.3 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dazn/kopytko-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "A modern Roku's Brightscript framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"brightscript",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test": "node node_modules/@dazn/kopytko-unit-testing-framework/scripts/test.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dazn/kopytko-utils": "^2.4.
|
|
28
|
+
"@dazn/kopytko-utils": "^2.4.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@dazn/eslint-plugin-kopytko": "^2.1.0",
|
|
32
|
-
"@dazn/kopytko-packager": "^1.4.
|
|
33
|
-
"@dazn/kopytko-unit-testing-framework": "^2.5.
|
|
32
|
+
"@dazn/kopytko-packager": "^1.4.2",
|
|
33
|
+
"@dazn/kopytko-unit-testing-framework": "^2.5.2",
|
|
34
34
|
"@semantic-release/changelog": "^6.0.3",
|
|
35
35
|
"@semantic-release/git": "^10.0.1",
|
|
36
36
|
"@semantic-release/github": "^12.0.6",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
' @param {String} responseData.failureReason
|
|
10
10
|
' @param {Object} responseData.headers
|
|
11
11
|
' @param {Integer} responseData.httpStatusCode
|
|
12
|
-
' @param {Object} responseData.rawData
|
|
13
12
|
' @param {Object} responseData.requestOptions
|
|
14
13
|
' @param {Integer} [responseData.time]
|
|
15
14
|
function HttpResponse(responseData as Object) as Object
|
|
@@ -46,7 +45,6 @@ function HttpResponse(responseData as Object) as Object
|
|
|
46
45
|
isSuccess: m._isSuccess(),
|
|
47
46
|
maxAge: m.getMaxAge(),
|
|
48
47
|
raw: { data: m._rawData },
|
|
49
|
-
rawData: m._rawData,
|
|
50
48
|
requestOptions: m._requestOptions,
|
|
51
49
|
})
|
|
52
50
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<component name="HttpResponseModel" extends="Node">
|
|
4
4
|
<interface>
|
|
5
|
-
<field id="data" type="node" /> <!-- @deprecated - HttpRequestResultModel is set as Request task's result field instead of HttpResponseModel -->
|
|
6
5
|
<field id="failureReason" type="string" />
|
|
7
6
|
<field id="headers" type="assocarray" />
|
|
8
7
|
<field id="httpStatusCode" type="integer" />
|
|
@@ -10,7 +9,6 @@
|
|
|
10
9
|
<field id="isSuccess" type="boolean" />
|
|
11
10
|
<field id="maxAge" type="integer" />
|
|
12
11
|
<field id="raw" type="assocarray" />
|
|
13
|
-
<field id="rawData" type="assocarray" /> <!-- @deprecated - raw field contains data key with rawData value now - raw = { data: <rawData value>} -->
|
|
14
12
|
<field id="requestOptions" type="assocarray" />
|
|
15
13
|
</interface>
|
|
16
14
|
</component>
|
|
@@ -59,7 +59,7 @@ end function
|
|
|
59
59
|
' @returns {Node}
|
|
60
60
|
function parseResponse(response as Object) as Object
|
|
61
61
|
parsedData = CreateObject("roSGNode", "Node")
|
|
62
|
-
parsedData.addFields(response.
|
|
62
|
+
parsedData.addFields(response.raw.data)
|
|
63
63
|
|
|
64
64
|
return parsedData
|
|
65
65
|
end function
|