@axe-core/react 4.4.3-alpha.288 → 4.4.3-alpha.289

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.
@@ -0,0 +1,6 @@
1
+ declare const cache: {
2
+ set(key: string, value: string): void;
3
+ get(key: string): string;
4
+ clear(): void;
5
+ };
6
+ export default cache;
package/dist/cache.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var _cache = {};
4
+ var cache = {
5
+ set: function (key, value) {
6
+ _cache[key] = value;
7
+ },
8
+ get: function (key) {
9
+ return _cache[key];
10
+ },
11
+ clear: function () {
12
+ Object.keys(_cache).forEach(function (key) {
13
+ delete _cache[key];
14
+ });
15
+ }
16
+ };
17
+ exports.default = cache;
18
+ //# sourceMappingURL=cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.js","sourceRoot":"","sources":["../cache.ts"],"names":[],"mappings":";;AAAA,IAAM,MAAM,GAA8B,EAAE,CAAC;AAE7C,IAAM,KAAK,GAAG;IACZ,GAAG,EAAH,UAAI,GAAW,EAAE,KAAa;QAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACtB,CAAC;IACD,GAAG,EAAH,UAAI,GAAW;QACb,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IACD,KAAK,EAAL;QACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAA,GAAG;YAC7B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC","sourcesContent":["const _cache: { [key: string]: string } = {};\n\nconst cache = {\n set(key: string, value: string): void {\n _cache[key] = value;\n },\n get(key: string): string {\n return _cache[key];\n },\n clear(): void {\n Object.keys(_cache).forEach(key => {\n delete _cache[key];\n });\n }\n};\n\nexport default cache;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axe-core/react",
3
- "version": "4.4.3-alpha.288+689fae1",
3
+ "version": "4.4.3-alpha.289+9b2b375",
4
4
  "description": "Dynamic accessibility analysis for React using axe-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,9 @@
8
8
  "dist/after.js",
9
9
  "dist/after.d.ts",
10
10
  "dist/after.js.map",
11
+ "dist/cache.js",
12
+ "dist/cache.d.ts",
13
+ "dist/cache.js.map",
11
14
  "dist/index.js",
12
15
  "dist/index.d.ts",
13
16
  "dist/index.js.map"
@@ -77,5 +80,5 @@
77
80
  "<rootDir>/test/jest.setup.js"
78
81
  ]
79
82
  },
80
- "gitHead": "689fae1484216df4b41a9e36bcc8fa8cd4fb46ac"
83
+ "gitHead": "9b2b375616988640dc836dad99a29f0c88bb20b8"
81
84
  }