@ever-works/ever-email-router-plugin 1.0.1 → 1.0.4
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 +23 -0
- package/dist/index.js +23 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -121,6 +121,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
121
121
|
new Set(RECORD_VISIBILITIES);
|
|
122
122
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
123
123
|
new Set(RECORD_LIST_VIEWS);
|
|
124
|
+
new Set(
|
|
125
|
+
"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(" ")
|
|
126
|
+
);
|
|
124
127
|
var VERSION = "1.0.0";
|
|
125
128
|
var GTM_SKILLS = [
|
|
126
129
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1896,6 +1899,26 @@ function parseMessageIdList(raw) {
|
|
|
1896
1899
|
}
|
|
1897
1900
|
var PLUGIN_CAPABILITIES = {
|
|
1898
1901
|
EMAIL_INBOUND: "email-inbound"};
|
|
1902
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1903
|
+
"user:email",
|
|
1904
|
+
"read:user",
|
|
1905
|
+
"repo",
|
|
1906
|
+
"delete_repo",
|
|
1907
|
+
"workflow",
|
|
1908
|
+
"write:repo_hook",
|
|
1909
|
+
"read:org",
|
|
1910
|
+
"project"
|
|
1911
|
+
];
|
|
1912
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1913
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1914
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1915
|
+
}
|
|
1916
|
+
function readEnv() {
|
|
1917
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1918
|
+
}
|
|
1919
|
+
Object.freeze(
|
|
1920
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1921
|
+
);
|
|
1899
1922
|
|
|
1900
1923
|
// src/ever-email-router-plugin.ts
|
|
1901
1924
|
var SECRET_ENV = "EVER_EMAIL_ROUTER_SECRET";
|
package/dist/index.js
CHANGED
|
@@ -115,6 +115,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
115
115
|
new Set(RECORD_VISIBILITIES);
|
|
116
116
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
117
117
|
new Set(RECORD_LIST_VIEWS);
|
|
118
|
+
new Set(
|
|
119
|
+
"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(" ")
|
|
120
|
+
);
|
|
118
121
|
var VERSION = "1.0.0";
|
|
119
122
|
var GTM_SKILLS = [
|
|
120
123
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1890,6 +1893,26 @@ function parseMessageIdList(raw) {
|
|
|
1890
1893
|
}
|
|
1891
1894
|
var PLUGIN_CAPABILITIES = {
|
|
1892
1895
|
EMAIL_INBOUND: "email-inbound"};
|
|
1896
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1897
|
+
"user:email",
|
|
1898
|
+
"read:user",
|
|
1899
|
+
"repo",
|
|
1900
|
+
"delete_repo",
|
|
1901
|
+
"workflow",
|
|
1902
|
+
"write:repo_hook",
|
|
1903
|
+
"read:org",
|
|
1904
|
+
"project"
|
|
1905
|
+
];
|
|
1906
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1907
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1908
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1909
|
+
}
|
|
1910
|
+
function readEnv() {
|
|
1911
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1912
|
+
}
|
|
1913
|
+
Object.freeze(
|
|
1914
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1915
|
+
);
|
|
1893
1916
|
|
|
1894
1917
|
// src/ever-email-router-plugin.ts
|
|
1895
1918
|
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.4",
|
|
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.28",
|
|
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:25d4c05d3d12c5bc8117fe74adc92dc14e8bb218c56c69d8a698757cf073114b",
|
|
80
|
+
"commit": "2288ff7e91562b0f079c365348ba08ab3a16f1dd",
|
|
81
|
+
"source": "https://github.com/ever-co/ever-works/tree/2288ff7e91562b0f079c365348ba08ab3a16f1dd/packages/plugins/ever-email-router"
|
|
82
82
|
}
|
|
83
83
|
}
|