@mui/internal-code-infra 0.1.1-canary.18 → 0.1.1-canary.19
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.
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
export declare const KEYRING_SERVICE = "mui-code-infra";
|
|
9
9
|
/**
|
|
10
10
|
* @param {string} key
|
|
11
|
-
* @returns {Promise<string |
|
|
11
|
+
* @returns {Promise<string | null>}
|
|
12
12
|
*/
|
|
13
|
-
export declare function getPassword(key: string): Promise<string |
|
|
13
|
+
export declare function getPassword(key: string): Promise<string | null>;
|
|
14
14
|
/**
|
|
15
15
|
* @param {string} key
|
|
16
16
|
* @param {string} password
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.1.1-canary.
|
|
3
|
+
"version": "0.1.1-canary.19",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@mui/internal-babel-plugin-display-name": "2.0.1-canary.2",
|
|
73
73
|
"@mui/internal-babel-plugin-minify-errors": "3.0.1-canary.2",
|
|
74
74
|
"@mui/internal-babel-plugin-resolve-imports": "3.0.1-canary.3",
|
|
75
|
-
"@napi-rs/keyring": "^2.1.
|
|
75
|
+
"@napi-rs/keyring": "^2.1.1",
|
|
76
76
|
"@octokit/auth-action": "^6.0.3",
|
|
77
77
|
"@octokit/oauth-methods": "^6.0.5",
|
|
78
78
|
"@octokit/plugin-retry": "^8.1.1",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"publishConfig": {
|
|
191
191
|
"access": "public"
|
|
192
192
|
},
|
|
193
|
-
"gitSha": "
|
|
193
|
+
"gitSha": "d5e2d4f1c7976bdaf932ed8abcd7fcd7a77160bc",
|
|
194
194
|
"scripts": {
|
|
195
195
|
"build": "tsc -p tsconfig.build.json",
|
|
196
196
|
"typescript": "tsc -noEmit",
|
|
@@ -23,11 +23,12 @@ const accessedCredentials = new Map();
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} key
|
|
26
|
-
* @returns {Promise<string |
|
|
26
|
+
* @returns {Promise<string | null>}
|
|
27
27
|
*/
|
|
28
28
|
export async function getPassword(key) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const cached = accessedCredentials.get(key);
|
|
30
|
+
if (cached) {
|
|
31
|
+
return cached;
|
|
31
32
|
}
|
|
32
33
|
let credential = credentials.get(key);
|
|
33
34
|
if (!credential) {
|
|
@@ -6,6 +6,9 @@ level: error
|
|
|
6
6
|
nonword: true
|
|
7
7
|
action:
|
|
8
8
|
name: replace
|
|
9
|
+
# Wider than upstream Google.Latin: also catches e.g/eg./i.e/ie. and any trailing
|
|
10
|
+
# punctuation, so no separate rule asks for "e.g." (which this one forbids).
|
|
11
|
+
# The lookbehind skips matches after a dot or inside a word (example.eg).
|
|
9
12
|
swap:
|
|
10
|
-
'\
|
|
11
|
-
'\
|
|
13
|
+
'(?<![\w.])e\.?g\.?(?=[^\w.]|$)': for example
|
|
14
|
+
'(?<![\w.])i\.?e\.?(?=[^\w.]|$)': that is
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Write things correctly, please no wrong references.
|
|
2
|
-
extends: substitution
|
|
3
|
-
message: Use '%s' instead of '%s'
|
|
4
|
-
level: error
|
|
5
|
-
ignorecase: false
|
|
6
|
-
# swap maps tokens in form of bad: good
|
|
7
|
-
# for more information: https://vale.sh/docs/topics/styles/#substitution
|
|
8
|
-
swap:
|
|
9
|
-
eg: e.g.
|
|
10
|
-
eg\.: e.g.
|
|
11
|
-
e\.g: e.g.
|
|
12
|
-
ie: i.e.
|
|
13
|
-
ie\.: i.e.
|
|
14
|
-
i\.e: i.e.
|