@ever-works/ever-email-router-plugin 1.0.1 → 1.0.5
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/index.cjs +26 -1
- package/dist/index.js +26 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -111,7 +111,9 @@ var USER_SELECTABLE_WORK_KINDS = [
|
|
|
111
111
|
"directory",
|
|
112
112
|
"awesome-repo",
|
|
113
113
|
"repo",
|
|
114
|
-
"app"
|
|
114
|
+
"app",
|
|
115
|
+
"knowledge-base",
|
|
116
|
+
"store"
|
|
115
117
|
];
|
|
116
118
|
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
|
|
117
119
|
new Set(WORK_KINDS);
|
|
@@ -121,6 +123,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
121
123
|
new Set(RECORD_VISIBILITIES);
|
|
122
124
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
123
125
|
new Set(RECORD_LIST_VIEWS);
|
|
126
|
+
new Set(
|
|
127
|
+
"a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
|
|
128
|
+
);
|
|
124
129
|
var VERSION = "1.0.0";
|
|
125
130
|
var GTM_SKILLS = [
|
|
126
131
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1896,6 +1901,26 @@ function parseMessageIdList(raw) {
|
|
|
1896
1901
|
}
|
|
1897
1902
|
var PLUGIN_CAPABILITIES = {
|
|
1898
1903
|
EMAIL_INBOUND: "email-inbound"};
|
|
1904
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1905
|
+
"user:email",
|
|
1906
|
+
"read:user",
|
|
1907
|
+
"repo",
|
|
1908
|
+
"delete_repo",
|
|
1909
|
+
"workflow",
|
|
1910
|
+
"write:repo_hook",
|
|
1911
|
+
"read:org",
|
|
1912
|
+
"project"
|
|
1913
|
+
];
|
|
1914
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1915
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1916
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1917
|
+
}
|
|
1918
|
+
function readEnv() {
|
|
1919
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1920
|
+
}
|
|
1921
|
+
Object.freeze(
|
|
1922
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1923
|
+
);
|
|
1899
1924
|
|
|
1900
1925
|
// src/ever-email-router-plugin.ts
|
|
1901
1926
|
var SECRET_ENV = "EVER_EMAIL_ROUTER_SECRET";
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,9 @@ var USER_SELECTABLE_WORK_KINDS = [
|
|
|
105
105
|
"directory",
|
|
106
106
|
"awesome-repo",
|
|
107
107
|
"repo",
|
|
108
|
-
"app"
|
|
108
|
+
"app",
|
|
109
|
+
"knowledge-base",
|
|
110
|
+
"store"
|
|
109
111
|
];
|
|
110
112
|
var WORK_KINDS = [...USER_SELECTABLE_WORK_KINDS, "company", "campaign", "project", "default"];
|
|
111
113
|
new Set(WORK_KINDS);
|
|
@@ -115,6 +117,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
115
117
|
new Set(RECORD_VISIBILITIES);
|
|
116
118
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
117
119
|
new Set(RECORD_LIST_VIEWS);
|
|
120
|
+
new Set(
|
|
121
|
+
"a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
|
|
122
|
+
);
|
|
118
123
|
var VERSION = "1.0.0";
|
|
119
124
|
var GTM_SKILLS = [
|
|
120
125
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1890,6 +1895,26 @@ function parseMessageIdList(raw) {
|
|
|
1890
1895
|
}
|
|
1891
1896
|
var PLUGIN_CAPABILITIES = {
|
|
1892
1897
|
EMAIL_INBOUND: "email-inbound"};
|
|
1898
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1899
|
+
"user:email",
|
|
1900
|
+
"read:user",
|
|
1901
|
+
"repo",
|
|
1902
|
+
"delete_repo",
|
|
1903
|
+
"workflow",
|
|
1904
|
+
"write:repo_hook",
|
|
1905
|
+
"read:org",
|
|
1906
|
+
"project"
|
|
1907
|
+
];
|
|
1908
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1909
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1910
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1911
|
+
}
|
|
1912
|
+
function readEnv() {
|
|
1913
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1914
|
+
}
|
|
1915
|
+
Object.freeze(
|
|
1916
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1917
|
+
);
|
|
1893
1918
|
|
|
1894
1919
|
// src/ever-email-router-plugin.ts
|
|
1895
1920
|
var SECRET_ENV = "EVER_EMAIL_ROUTER_SECRET";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/ever-email-router-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Ever Email Router plugin (inbound) for Ever Works platform — receive mail for @ever.email addresses from the shared Cloudflare router",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ever Co. LTD",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test:watch": "vitest"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ever-works/plugin": "^1.2.
|
|
35
|
+
"@ever-works/plugin": "^1.2.33",
|
|
36
36
|
"postal-mime": "^4.1.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
|
70
70
|
"type": "git",
|
|
71
|
-
"url": "git+https://github.com/ever-
|
|
71
|
+
"url": "git+https://github.com/ever-co/ever-works.git",
|
|
72
72
|
"directory": "packages/plugins/ever-email-router"
|
|
73
73
|
},
|
|
74
|
-
"homepage": "https://github.com/ever-
|
|
74
|
+
"homepage": "https://github.com/ever-co/ever-works/tree/main/packages/plugins/ever-email-router#readme",
|
|
75
75
|
"bugs": {
|
|
76
|
-
"url": "https://github.com/ever-
|
|
76
|
+
"url": "https://github.com/ever-co/ever-works/issues"
|
|
77
77
|
},
|
|
78
78
|
"everworksRelease": {
|
|
79
|
-
"contentHash": "sha256:
|
|
80
|
-
"commit": "
|
|
81
|
-
"source": "https://github.com/ever-
|
|
79
|
+
"contentHash": "sha256:53bd87b7ab09aa49163654104fa12f1bcea1c8abf9d98cfa5d6b0ab305b331cc",
|
|
80
|
+
"commit": "c6b8fd57745689ed9be529bed3fe4bd3d4f85b67",
|
|
81
|
+
"source": "https://github.com/ever-co/ever-works/tree/c6b8fd57745689ed9be529bed3fe4bd3d4f85b67/packages/plugins/ever-email-router"
|
|
82
82
|
}
|
|
83
83
|
}
|