@dazn/kopytko-framework 2.0.0 → 2.1.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": "2.0.0",
3
+ "version": "2.1.0",
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