@qualithm/arc 0.1.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/LICENSE +18 -0
- package/README.md +59 -0
- package/dist/greet.d.ts +26 -0
- package/dist/greet.d.ts.map +1 -0
- package/dist/greet.js +23 -0
- package/dist/greet.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/package.json +82 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Qualithm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
7
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
8
|
+
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
|
|
15
|
+
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
16
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
|
17
|
+
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Arc
|
|
2
|
+
|
|
3
|
+
Arrow Flight and Flight SQL client for JavaScript and TypeScript runtimes.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
1. Use this template to create a new repository
|
|
8
|
+
2. Update `name` in `package.json` to your package name
|
|
9
|
+
3. Update `CONTEXT.md` with your project's intent
|
|
10
|
+
4. Start building in `src/`
|
|
11
|
+
|
|
12
|
+
## Development
|
|
13
|
+
|
|
14
|
+
### Prerequisites
|
|
15
|
+
|
|
16
|
+
- [Bun](https://bun.sh/) (recommended) or Node.js 20+
|
|
17
|
+
|
|
18
|
+
### Setup
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
bun install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Building
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
bun run build
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Running
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
bun run start
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Testing
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
bun test
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Linting & Formatting
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
bun run lint
|
|
46
|
+
bun run format
|
|
47
|
+
bun run typecheck
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Benchmarks
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
bun run bench
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Publishing
|
|
57
|
+
|
|
58
|
+
The package is automatically published to NPM when CI passes on main. Update the version in
|
|
59
|
+
`package.json` before merging to trigger a new release.
|
package/dist/greet.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for the greet function.
|
|
3
|
+
*/
|
|
4
|
+
export type GreetOptions = {
|
|
5
|
+
/** Name to greet. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Whether to use formal greeting. */
|
|
8
|
+
formal?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Generate a greeting message.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The greeting options.
|
|
14
|
+
* @returns A greeting string.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const message = greet({ name: "World" })
|
|
19
|
+
* // => "Hello, World!"
|
|
20
|
+
*
|
|
21
|
+
* const formal = greet({ name: "World", formal: true })
|
|
22
|
+
* // => "Good day, World."
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function greet(options: GreetOptions): string;
|
|
26
|
+
//# sourceMappingURL=greet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greet.d.ts","sourceRoot":"","sources":["../src/greet.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAQnD"}
|
package/dist/greet.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a greeting message.
|
|
3
|
+
*
|
|
4
|
+
* @param options - The greeting options.
|
|
5
|
+
* @returns A greeting string.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const message = greet({ name: "World" })
|
|
10
|
+
* // => "Hello, World!"
|
|
11
|
+
*
|
|
12
|
+
* const formal = greet({ name: "World", formal: true })
|
|
13
|
+
* // => "Good day, World."
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export function greet(options) {
|
|
17
|
+
const { name, formal = false } = options;
|
|
18
|
+
if (formal) {
|
|
19
|
+
return `Good day, ${name}.`;
|
|
20
|
+
}
|
|
21
|
+
return `Hello, ${name}!`;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=greet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greet.js","sourceRoot":"","sources":["../src/greet.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,KAAK,CAAC,OAAqB;IACzC,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,OAAO,CAAA;IAExC,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,aAAa,IAAI,GAAG,CAAA;IAC7B,CAAC;IAED,OAAO,UAAU,IAAI,GAAG,CAAA;AAC1B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qualithm/arc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Arrow Flight and Flight SQL client for JavaScript and TypeScript runtimes.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"typescript",
|
|
9
|
+
"template",
|
|
10
|
+
"npm"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Qualithm",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/qualithm/arc.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/qualithm/arc#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/qualithm/arc/issues"
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"bun": "./dist/index.js",
|
|
28
|
+
"node": "./dist/index.js",
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=20.0.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"bench": "bun run bench/index.ts",
|
|
43
|
+
"build:watch": "tsc -p tsconfig.build.json --watch",
|
|
44
|
+
"build": "tsc -p tsconfig.build.json",
|
|
45
|
+
"clean": "rm -rf dist",
|
|
46
|
+
"demo": "bun run scripts/demo.ts",
|
|
47
|
+
"dev": "bun --watch run src/index.ts",
|
|
48
|
+
"docs": "typedoc",
|
|
49
|
+
"format:fix": "prettier --write .",
|
|
50
|
+
"format": "prettier --check .",
|
|
51
|
+
"lint:fix": "eslint --fix .",
|
|
52
|
+
"lint": "eslint .",
|
|
53
|
+
"prepublishOnly": "bun run clean && bun run build",
|
|
54
|
+
"start": "bun run src/index.ts",
|
|
55
|
+
"test:coverage": "vitest run --coverage",
|
|
56
|
+
"test:coverage:unit": "vitest run --coverage src/__tests__/unit",
|
|
57
|
+
"test:integration": "vitest run src/__tests__/integration",
|
|
58
|
+
"test:unit": "vitest run src/__tests__/unit",
|
|
59
|
+
"test:watch": "vitest",
|
|
60
|
+
"test": "vitest run src/__tests__/unit",
|
|
61
|
+
"typecheck": "tsc -p tsconfig.node.json --noEmit"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@eslint/js": "10.0.1",
|
|
66
|
+
"@types/bun": "1.3.9",
|
|
67
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
68
|
+
"eslint": "10.0.2",
|
|
69
|
+
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
70
|
+
"eslint-plugin-unused-imports": "4.4.1",
|
|
71
|
+
"globals": "17.3.0",
|
|
72
|
+
"jiti": "2.6.1",
|
|
73
|
+
"prettier": "3.8.1",
|
|
74
|
+
"typedoc": "0.28.17",
|
|
75
|
+
"typescript": "5.9.3",
|
|
76
|
+
"typescript-eslint": "8.56.1",
|
|
77
|
+
"vitest": "^4.0.18"
|
|
78
|
+
},
|
|
79
|
+
"overrides": {
|
|
80
|
+
"minimatch": "10.2.3"
|
|
81
|
+
}
|
|
82
|
+
}
|