@effected/github 0.9.0 → 0.10.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/GitHubClient.js +1 -1
- package/Repo.js +1 -1
- package/package.json +4 -4
- package/tsdoc-metadata.json +1 -1
package/GitHubClient.js
CHANGED
|
@@ -57,7 +57,7 @@ var GitHubClient = class GitHubClient extends Context.Service()("@effected/githu
|
|
|
57
57
|
* five-line comment explaining that the error did not mean what it said.
|
|
58
58
|
*/
|
|
59
59
|
static layerFromConfig = (options = {}) => Layer.effect(this, Effect.gen(function* () {
|
|
60
|
-
const token = yield* Config.
|
|
60
|
+
const token = yield* Config.Redacted(options.name ?? "GITHUB_TOKEN");
|
|
61
61
|
return yield* makeClientShape({
|
|
62
62
|
...options,
|
|
63
63
|
token
|
package/Repo.js
CHANGED
|
@@ -98,7 +98,7 @@ var Repo = class Repo extends Context.Service()("@effected/github/Repo") {
|
|
|
98
98
|
* than `process.env` — so a test provides a provider instead of mutating the
|
|
99
99
|
* environment, and a consumer outside Actions can source it however it likes.
|
|
100
100
|
*/
|
|
101
|
-
static layerFromConfig = (options = {}) => Layer.effect(Repo, Effect.flatMap(Config.
|
|
101
|
+
static layerFromConfig = (options = {}) => Layer.effect(Repo, Effect.flatMap(Config.String(options.name ?? "GITHUB_REPOSITORY"), (slug) => RepoRef.parse(slug)));
|
|
102
102
|
/** Run `effect` against a different repository. */
|
|
103
103
|
static provide = (ref) => (effect) => Effect.provideService(effect, Repo, ref);
|
|
104
104
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/github",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Typed GitHub REST and GraphQL services over the octokit core request surface, with app auth and resource helpers.",
|
|
6
6
|
"keywords": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@effected/github-references": "^0.
|
|
42
|
-
"@effected/semver": "^0.
|
|
41
|
+
"@effected/github-references": "^0.3.0",
|
|
42
|
+
"@effected/semver": "^0.7.0",
|
|
43
43
|
"@octokit/core": "^7.0.6",
|
|
44
44
|
"@octokit/plugin-paginate-rest": "^15.0.0",
|
|
45
45
|
"@octokit/types": "^17.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"universal-github-app-jwt": "^2.2.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"effect": "4.0.0-rc.
|
|
51
|
+
"effect": "4.0.0-rc.115"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=24.11.0"
|