Skip to content

Commit 4cb2a37

Browse files
committed
[skip ci] remove unused config fields
1 parent c370b35 commit 4cb2a37

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

examples/programmatic_usage.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
// REPLACE ALL REFERENCES TO "_generic_hasher" WITH THE DESIRED ALGORITHM IN THE ALGORITHMS DIRECTORY.
2-
3-
import { dirname, join } from 'node:path';
4-
import { fileURLToPath } from 'node:url';
5-
62
import { generateHashesForDocument, validateDocument, type CidDocument, type Config } from '../src/index';
73
import { SUPPORTED_VALIDATORS } from '../src/validation/Validation';
84
import { makeHasher } from './example_algorithm/_generic_hasher';
95

10-
const __dirname = dirname(fileURLToPath(import.meta.url));
11-
126
/*
137
Construct a config object instructing the algorithm HOW to process the data being passed
148
in. This contains rules related to source schema, target schemas, validation rules, and
@@ -18,9 +12,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
1812
*/
1913
const config: Config.Options = {
2014
meta: {
21-
region: "UNKONWN", // this must match the shortCode of the algorithm being used
22-
version: "",
23-
signature: ""
15+
// this must match the shortCode of the algorithm being used
16+
region: "UNKONWN"
2417
},
2518
// the schema information for the source data
2619
source: {

0 commit comments

Comments
 (0)