webext-schema 4.0.0 → 4.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/modules/browser.js +10 -0
- package/package.json +2 -2
package/modules/browser.js
CHANGED
|
@@ -412,6 +412,16 @@ export const getManifestIcons = () => {
|
|
|
412
412
|
return icons;
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
+
/**
|
|
416
|
+
* get manifest version
|
|
417
|
+
*
|
|
418
|
+
* @returns {number} - version
|
|
419
|
+
*/
|
|
420
|
+
export const getManifestVersion = () => {
|
|
421
|
+
const { manifest_version: version } = runtime.getManifest();
|
|
422
|
+
return version;
|
|
423
|
+
};
|
|
424
|
+
|
|
415
425
|
/**
|
|
416
426
|
* get OS
|
|
417
427
|
*
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"commander": "^9.3.0",
|
|
33
33
|
"decamelize": "^6.0.0",
|
|
34
34
|
"json5": "^2.2.1",
|
|
35
|
-
"node-fetch": "^3.2.
|
|
35
|
+
"node-fetch": "^3.2.6",
|
|
36
36
|
"sinon": "^14.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"nock": "^13.2.6",
|
|
49
49
|
"npm-run-all": "^4.1.5"
|
|
50
50
|
},
|
|
51
|
-
"version": "4.
|
|
51
|
+
"version": "4.1.0"
|
|
52
52
|
}
|