@fagelsjo/blocks 0.0.1

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/Makefile ADDED
@@ -0,0 +1,16 @@
1
+ .PHONY: run clean pub
2
+
3
+ all: build
4
+
5
+ build:
6
+ npm run build
7
+
8
+ run:
9
+ npm start
10
+
11
+ pub:
12
+ npm run pub
13
+
14
+ clean:
15
+ rm -f *.ts
16
+
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ /* index.ts */
2
+ let log;
3
+ let fail;
4
+ log = console.log;
5
+ fail = (...args) => {
6
+ console.error(...args);
7
+ throw new Error();
8
+ return void 0;
9
+ };
10
+ log('foo');
11
+ export {};
12
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@fagelsjo/blocks",
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "description": "Handle blocks of bigints in an IPv6 kind of way.",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "pub": "npm version patch && npm publish",
10
+ "start": "node ."
11
+ },
12
+ "keywords": [
13
+ "blocks",
14
+ "bigint",
15
+ "ipv6"
16
+ ],
17
+ "author": "@dr-Jonas-Birch",
18
+ "license": "MIT",
19
+ "devDependencies": {
20
+ "@types/node": "^25.2.3",
21
+ "@types/typescript": "^2.0.0",
22
+ "typescript": "^5.9.3"
23
+ }
24
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ // Visit https://aka.ms/tsconfig to read more about this file
3
+ "compilerOptions": {
4
+ // File Layout
5
+ // "rootDir": "./src",
6
+ // "outDir": "./dist",
7
+
8
+ // Environment Settings
9
+ // See also https://aka.ms/tsconfig/module
10
+ "module": "nodenext",
11
+ "target": "esnext",
12
+ "types": [],
13
+ // For nodejs:
14
+ // "lib": ["esnext"],
15
+ // "types": ["node"],
16
+ // and npm install -D @types/node
17
+
18
+ // Other Outputs
19
+ "sourceMap": true,
20
+ "declaration": true,
21
+ "declarationMap": true,
22
+
23
+ // Stricter Typechecking Options
24
+ "noUncheckedIndexedAccess": true,
25
+ "exactOptionalPropertyTypes": true,
26
+
27
+ // Style Options
28
+ // "noImplicitReturns": true,
29
+ // "noImplicitOverride": true,
30
+ // "noUnusedLocals": true,
31
+ // "noUnusedParameters": true,
32
+ // "noFallthroughCasesInSwitch": true,
33
+ // "noPropertyAccessFromIndexSignature": true,
34
+
35
+ // Recommended Options
36
+ "strict": true,
37
+ "jsx": "react-jsx",
38
+ "verbatimModuleSyntax": true,
39
+ "isolatedModules": true,
40
+ "noUncheckedSideEffectImports": true,
41
+ "moduleDetection": "force",
42
+ "skipLibCheck": true,
43
+ }
44
+ }