extension 4.1.4 → 4.1.6
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/dist/cli.cjs
CHANGED
|
@@ -6869,7 +6869,7 @@ var __webpack_modules__ = {
|
|
|
6869
6869
|
}
|
|
6870
6870
|
var messaging = __webpack_require__("./helpers/messaging.ts");
|
|
6871
6871
|
const TEMPLATE_CORPUS_REPO = 'extension-js/examples';
|
|
6872
|
-
const TEMPLATE_CORPUS_REF = '
|
|
6872
|
+
const TEMPLATE_CORPUS_REF = 'e6bee72ae08802f2f14048271fb93f76c10d6a37';
|
|
6873
6873
|
const TEMPLATE_CORPUS_SLUGS = [
|
|
6874
6874
|
'action',
|
|
6875
6875
|
'action-locales',
|
|
@@ -6895,21 +6895,21 @@ var __webpack_modules__ = {
|
|
|
6895
6895
|
'content-vue',
|
|
6896
6896
|
'init',
|
|
6897
6897
|
"javascript",
|
|
6898
|
-
'
|
|
6899
|
-
'
|
|
6900
|
-
'
|
|
6901
|
-
'
|
|
6902
|
-
'
|
|
6903
|
-
'
|
|
6904
|
-
'
|
|
6905
|
-
'
|
|
6906
|
-
'
|
|
6907
|
-
'
|
|
6908
|
-
'
|
|
6909
|
-
'
|
|
6910
|
-
'
|
|
6911
|
-
"
|
|
6912
|
-
'
|
|
6898
|
+
'newtab',
|
|
6899
|
+
'newtab-browser-flags',
|
|
6900
|
+
'newtab-config-eslint',
|
|
6901
|
+
'newtab-config-prettier',
|
|
6902
|
+
'newtab-config-stylelint',
|
|
6903
|
+
'newtab-crypto',
|
|
6904
|
+
'newtab-env',
|
|
6905
|
+
'newtab-less',
|
|
6906
|
+
'newtab-preact',
|
|
6907
|
+
'newtab-react',
|
|
6908
|
+
'newtab-react-router',
|
|
6909
|
+
'newtab-sass',
|
|
6910
|
+
'newtab-svelte',
|
|
6911
|
+
"newtab-typescript",
|
|
6912
|
+
'newtab-vue',
|
|
6913
6913
|
'playwright',
|
|
6914
6914
|
'preact',
|
|
6915
6915
|
'react',
|
|
@@ -6987,21 +6987,21 @@ var __webpack_modules__ = {
|
|
|
6987
6987
|
title: 'New tab',
|
|
6988
6988
|
summary: 'replaces the browser new tab page',
|
|
6989
6989
|
templates: [
|
|
6990
|
-
'
|
|
6991
|
-
'
|
|
6992
|
-
'
|
|
6993
|
-
'
|
|
6994
|
-
'
|
|
6995
|
-
'
|
|
6996
|
-
'
|
|
6997
|
-
'
|
|
6998
|
-
'
|
|
6999
|
-
'
|
|
7000
|
-
'
|
|
7001
|
-
'
|
|
7002
|
-
'
|
|
7003
|
-
"
|
|
7004
|
-
'
|
|
6990
|
+
'newtab',
|
|
6991
|
+
'newtab-browser-flags',
|
|
6992
|
+
'newtab-config-eslint',
|
|
6993
|
+
'newtab-config-prettier',
|
|
6994
|
+
'newtab-config-stylelint',
|
|
6995
|
+
'newtab-crypto',
|
|
6996
|
+
'newtab-env',
|
|
6997
|
+
'newtab-less',
|
|
6998
|
+
'newtab-preact',
|
|
6999
|
+
'newtab-react',
|
|
7000
|
+
'newtab-react-router',
|
|
7001
|
+
'newtab-sass',
|
|
7002
|
+
'newtab-svelte',
|
|
7003
|
+
"newtab-typescript",
|
|
7004
|
+
'newtab-vue'
|
|
7005
7005
|
]
|
|
7006
7006
|
},
|
|
7007
7007
|
{
|
|
@@ -7048,7 +7048,30 @@ var __webpack_modules__ = {
|
|
|
7048
7048
|
return groups;
|
|
7049
7049
|
}
|
|
7050
7050
|
const TEMPLATE_GROUPS = buildTemplateGroups();
|
|
7051
|
-
const TEMPLATE_ALIASES = [
|
|
7051
|
+
const TEMPLATE_ALIASES = [
|
|
7052
|
+
'new',
|
|
7053
|
+
'new-browser-flags',
|
|
7054
|
+
'new-config-eslint',
|
|
7055
|
+
'new-config-prettier',
|
|
7056
|
+
'new-config-stylelint',
|
|
7057
|
+
'new-crypto',
|
|
7058
|
+
'new-env',
|
|
7059
|
+
'new-less',
|
|
7060
|
+
'new-preact',
|
|
7061
|
+
'new-react',
|
|
7062
|
+
'new-react-router',
|
|
7063
|
+
'new-sass',
|
|
7064
|
+
'new-svelte',
|
|
7065
|
+
"new-typescript",
|
|
7066
|
+
'new-vue'
|
|
7067
|
+
].map((name)=>{
|
|
7068
|
+
const resolvesTo = `newtab${name.slice(3)}`;
|
|
7069
|
+
return {
|
|
7070
|
+
name,
|
|
7071
|
+
resolvesTo,
|
|
7072
|
+
note: `renamed to ${resolvesTo}`
|
|
7073
|
+
};
|
|
7074
|
+
});
|
|
7052
7075
|
function listTemplates() {
|
|
7053
7076
|
return TEMPLATE_GROUPS.flatMap((group)=>group.templates);
|
|
7054
7077
|
}
|
|
@@ -7081,10 +7104,7 @@ var __webpack_modules__ = {
|
|
|
7081
7104
|
if (TEMPLATE_ALIASES.length > 0) {
|
|
7082
7105
|
lines.push('');
|
|
7083
7106
|
lines.push(` ${title('Aliases')}`);
|
|
7084
|
-
for (const alias of TEMPLATE_ALIASES){
|
|
7085
|
-
lines.push(` ${slug(alias.name)} ${dim(alias.note)}`);
|
|
7086
|
-
lines.push(dim(' pass its URL to scaffold the catalog folder instead'));
|
|
7087
|
-
}
|
|
7107
|
+
for (const alias of TEMPLATE_ALIASES)lines.push(` ${slug(alias.name)} ${dim(`still works, ${alias.note}`)}`);
|
|
7088
7108
|
}
|
|
7089
7109
|
return lines.join('\n');
|
|
7090
7110
|
}
|
|
@@ -8035,7 +8055,7 @@ Cross-browser compatibility
|
|
|
8035
8055
|
const message = 'string' == typeof raw.message ? raw.message : 'command failed';
|
|
8036
8056
|
const refusal = 'string' == typeof raw.code ? raw.code : void 0;
|
|
8037
8057
|
const code = codeForBridgeError(name, message, refusal);
|
|
8038
|
-
const hint = 'string' == typeof raw.hint ? raw.hint : code === messaging.Lp.E_EVAL ? 'The expression threw inside the page. Check the expression itself.' : void 0;
|
|
8058
|
+
const hint = 'string' == typeof raw.hint ? raw.hint : code === messaging.Lp.E_EVAL ? 'The expression threw inside the page. Check the expression itself.' : code === messaging.Lp.E_USER_GESTURE_REQUIRED ? "The browser opens this surface only in response to a click, and refuses to open it any other way. Click the extension in the browser toolbar to open it." : void 0;
|
|
8039
8059
|
return {
|
|
8040
8060
|
...extras,
|
|
8041
8061
|
...messaging.Pr.fail(command, statusForCode(code), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const DEFAULT_TEMPLATE = "javascript";
|
|
2
2
|
export declare const BUNDLED_TEMPLATES: readonly string[];
|
|
3
|
-
export declare const TEMPLATE_CATALOG_URL = "https://github.com/extension-js/examples/tree/
|
|
3
|
+
export declare const TEMPLATE_CATALOG_URL = "https://github.com/extension-js/examples/tree/e6bee72ae08802f2f14048271fb93f76c10d6a37/examples";
|
|
4
4
|
export interface TemplateGroup {
|
|
5
5
|
title: string;
|
|
6
6
|
summary: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const TEMPLATE_CORPUS_REPO = "extension-js/examples";
|
|
2
|
-
export declare const TEMPLATE_CORPUS_REF = "
|
|
2
|
+
export declare const TEMPLATE_CORPUS_REF = "e6bee72ae08802f2f14048271fb93f76c10d6a37";
|
|
3
3
|
export declare const TEMPLATE_CORPUS_SLUGS: readonly string[];
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.1.
|
|
41
|
+
"version": "4.1.6",
|
|
42
42
|
"description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
|
|
43
43
|
"homepage": "https://extension.js.org/",
|
|
44
44
|
"bugs": {
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vivaldi-location2": "2.1.1",
|
|
107
107
|
"waterfox-location": "2.1.1",
|
|
108
108
|
"yandex-location": "2.1.1",
|
|
109
|
-
"extension-create": "4.1.
|
|
110
|
-
"extension-develop": "4.1.
|
|
111
|
-
"extension-install": "4.1.
|
|
109
|
+
"extension-create": "4.1.6",
|
|
110
|
+
"extension-develop": "4.1.6",
|
|
111
|
+
"extension-install": "4.1.6",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|