@dazn/kopytko-framework 1.0.2 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [1.0.5](https://github.com/getndazn/kopytko-framework/compare/v1.0.4...v1.0.5) (2022-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * expose response headers in HttpResponse ([#26](https://github.com/getndazn/kopytko-framework/issues/26)) ([5517ff2](https://github.com/getndazn/kopytko-framework/commit/5517ff2eaff9d11a8d81ada9ea390288eb049d15))
7
+
8
+ ## [1.0.4](https://github.com/getndazn/kopytko-framework/compare/v1.0.3...v1.0.4) (2022-04-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * active route should skip is omitted in history ([#24](https://github.com/getndazn/kopytko-framework/issues/24)) ([970ff96](https://github.com/getndazn/kopytko-framework/commit/970ff9662376a909f1018b452a04b4cf5378a446))
14
+
15
+ ## [1.0.3](https://github.com/getndazn/kopytko-framework/compare/v1.0.2...v1.0.3) (2022-03-04)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * update dependencies ([#19](https://github.com/getndazn/kopytko-framework/issues/19)) ([4652ec2](https://github.com/getndazn/kopytko-framework/commit/4652ec2201292083b8202acb624674de8cd8275e))
21
+
1
22
  ## [1.0.2](https://github.com/getndazn/kopytko-framework/compare/v1.0.1...v1.0.2) (2021-12-03)
2
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazn/kopytko-framework",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "A modern Roku's Brightscript framework",
5
5
  "keywords": [
6
6
  "brightscript",
@@ -13,7 +13,8 @@
13
13
  "Tomasz Rejment <trejment@gmail.com>",
14
14
  "Błażej Chełkowski <blazej.chelkowski@outlook.com>",
15
15
  "Radosław Zambrowski <radekzam@gmail.com>",
16
- "Mauricio Dziedzinski <d.mauriciofarias@gmail.com>"
16
+ "Mauricio Dziedzinski <d.mauriciofarias@gmail.com>",
17
+ "Tomasz Bazelczuk <tbazelczuk@gmail.com>"
17
18
  ],
18
19
  "files": [
19
20
  "src",
@@ -24,14 +25,13 @@
24
25
  "test": "node node_modules/@dazn/kopytko-unit-testing-framework/scripts/test.js"
25
26
  },
26
27
  "dependencies": {
27
- "@dazn/kopytko-utils": "^2.0.0"
28
+ "@dazn/kopytko-utils": "^2.0.1"
28
29
  },
29
30
  "devDependencies": {
30
- "@dazn/eslint-plugin-kopytko": "^1.0.0",
31
- "@dazn/kopytko-packager": "^1.0.3",
32
- "@dazn/kopytko-unit-testing-framework": "^1.0.0",
33
- "eslint": "5.6.0",
34
- "eslint-plugin-roku": "^1.5.3"
31
+ "@dazn/eslint-plugin-kopytko": "^2.1.0",
32
+ "@dazn/kopytko-packager": "^1.2.0",
33
+ "@dazn/kopytko-unit-testing-framework": "^1.0.3",
34
+ "eslint": "^8.10.0"
35
35
  },
36
36
  "license": "MIT",
37
37
  "kopytkoModuleDir": "src/",
@@ -1,8 +1,8 @@
1
1
  ' @import /components/buildUrl.brs from @dazn/kopytko-utils
2
2
  ' @import /components/getProperty.brs from @dazn/kopytko-utils
3
- ' @import /components/ternary.brs from @dazn/kopytko-utils
4
3
  ' @import /components/rokuComponents/Timespan.brs from @dazn/kopytko-utils
5
4
  ' @import /components/rokuComponents/UrlTransfer.brs from @dazn/kopytko-utils
5
+ ' @import /components/ternary.brs from @dazn/kopytko-utils
6
6
 
7
7
  ' @typedef {Object} HttpRequest~Options
8
8
  ' @property {String} id
@@ -67,6 +67,7 @@ function HttpResponse(response as Object) as Object
67
67
  responseNode = CreateObject("roSGNode", "Node")
68
68
  responseNode.id = m._id
69
69
  responseNode.addFields({
70
+ headers: m._headers,
70
71
  httpStatusCode: m._httpStatusCode,
71
72
  isSuccess: m._isSuccess,
72
73
  rawData: m._data,
@@ -56,7 +56,7 @@ sub resetHistory(rootPath = "" as String)
56
56
  end sub
57
57
 
58
58
  sub _updateHistory()
59
- if (m.top.url = "")
59
+ if (m.top.url = "" OR m.top.activatedRoute.shouldSkip)
60
60
  return
61
61
  end if
62
62