@okfit/profiles 0.8.0 → 0.8.2
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/Derivation.js +3 -2
- package/index.d.ts +1 -1
- package/package.json +5 -5
package/Derivation.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GitHistory } from "./GitHistory.js";
|
|
2
2
|
import { Actor, OkfitConfig } from "@okfit/core";
|
|
3
|
-
import { Crypto, DateTime, Duration, Effect,
|
|
3
|
+
import { Crypto, DateTime, Duration, Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
4
4
|
import { Git } from "@effected/git";
|
|
5
5
|
import { FrontmatterSource } from "@effected/markdown";
|
|
6
|
+
import * as Hex from "effect/encoding/Hex";
|
|
6
7
|
|
|
7
8
|
//#region src/Derivation.ts
|
|
8
9
|
/**
|
|
@@ -41,7 +42,7 @@ const normalise = (text) => text.replace(/\r\n?/g, "\n").trimEnd();
|
|
|
41
42
|
const body = (text) => normalise(FrontmatterSource.split(text).body);
|
|
42
43
|
const bodyDigest = (text) => Effect.gen(function* () {
|
|
43
44
|
const bytes = yield* (yield* Crypto.Crypto).digest("SHA-256", new TextEncoder().encode(body(text)));
|
|
44
|
-
return
|
|
45
|
+
return Hex.encode(bytes);
|
|
45
46
|
});
|
|
46
47
|
/** The text before the first `@` (the whole value when there is none), or undefined when empty or containing whitespace. */
|
|
47
48
|
const localPartOf = (email) => {
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, Crypto, DateTime, Effect, FileSystem, Layer, Option, Path, PlatformError, Schema } from "effect";
|
|
2
2
|
import { Git, GitCommandError, NotARepositoryError, UnknownRefError } from "@effected/git";
|
|
3
3
|
import { Actor, Diagnostic, DiagnosticRange, LoadedBundle, OkfitConfig } from "@okfit/core";
|
|
4
|
-
import { ChildProcessSpawner } from "effect/
|
|
4
|
+
import { ChildProcessSpawner } from "effect/process";
|
|
5
5
|
//#region src/BodyProvenance.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The body is at HEAD and last changed in the commit described here (P-9).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/profiles",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Named OKF configuration profiles for okfit, starting with the software-project profile.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@effected/git": "^0.
|
|
39
|
-
"@effected/markdown": "^0.
|
|
40
|
-
"@okfit/core": "^0.8.
|
|
41
|
-
"effect": "4.0.0-rc.
|
|
38
|
+
"@effected/git": "^0.19.0",
|
|
39
|
+
"@effected/markdown": "^0.14.0",
|
|
40
|
+
"@okfit/core": "^0.8.3",
|
|
41
|
+
"effect": "4.0.0-rc.118"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=24.11.0"
|