@dazn/kopytko-framework 2.0.0 → 2.1.1

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": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "A modern Roku's Brightscript framework",
5
5
  "keywords": [
6
6
  "brightscript",
@@ -25,11 +25,11 @@
25
25
  "test": "node node_modules/@dazn/kopytko-unit-testing-framework/scripts/test.js"
26
26
  },
27
27
  "dependencies": {
28
- "@dazn/kopytko-utils": "^2.3.2"
28
+ "@dazn/kopytko-utils": "^2.4.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@dazn/eslint-plugin-kopytko": "^2.1.0",
32
- "@dazn/kopytko-packager": "^1.2.3",
32
+ "@dazn/kopytko-packager": "^1.2.4",
33
33
  "@dazn/kopytko-unit-testing-framework": "^2.3.1",
34
34
  "eslint": "^8.21.0"
35
35
  },
@@ -4,7 +4,7 @@
4
4
  function HttpCache() as Object
5
5
  prototype = {}
6
6
 
7
- prototype._cacheFS = CacheFS()
7
+ prototype._cacheFS = CacheFS("httpCache")
8
8
 
9
9
  ' @param {String} escapedUrl
10
10
  ' @returns {CachedHttpResponse|Invalid}
@@ -38,5 +38,10 @@ function HttpCache() as Object
38
38
  return response
39
39
  end function
40
40
 
41
+ ' @returns {Boolean} - true if the cache in scope has been cleared
42
+ prototype.clear = function () as Boolean
43
+ return m._cacheFS.clear()
44
+ end function
45
+
41
46
  return prototype
42
47
  end function
@@ -1,16 +1,16 @@
1
1
  sub initKopytkoRoot(dynamicProps as Object)
2
2
  m._dynamicProps = dynamicProps
3
3
 
4
- for each prop in dynamicProps
5
- m.top.observeFieldScoped(prop, "kopytkoRoot_dynamicPropChanged")
6
- end for
7
-
8
4
  dynamicPropsValues = {}
9
5
  for each prop in dynamicProps
10
6
  dynamicPropsValues[prop] = m.top[prop]
11
7
  end for
12
8
 
13
9
  initKopytko(dynamicPropsValues)
10
+
11
+ for each prop in dynamicProps
12
+ m.top.observeFieldScoped(prop, "kopytkoRoot_dynamicPropChanged")
13
+ end for
14
14
  end sub
15
15
 
16
16
  sub destroyKopytkoRoot()