@relayfile/adapter-linear 0.1.1 → 0.1.4
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/dist/index.js +6 -0
- package/package.json +4 -3
- package/src/__tests__/linear-adapter.test.ts +2 -2
- package/src/__tests__/types.test.ts +1 -1
- package/src/__tests__/webhook-normalizer.test.ts +1 -1
- package/src/index.ts +4 -4
- package/src/linear-adapter.ts +2 -2
- package/src/webhook-normalizer.ts +1 -1
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relayfile/adapter-linear",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Linear adapter bootstrap package for Relayfile",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
"src"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"typecheck": "tsc -p tsconfig.json",
|
|
15
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
16
16
|
"test": "node --import tsx --test src/__tests__/*.test.ts",
|
|
17
|
-
"build": "tsc"
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [
|
|
20
21
|
"relayfile",
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
type ProxyRequest,
|
|
19
19
|
type ProxyResponse,
|
|
20
20
|
type RelayFileClientLike,
|
|
21
|
-
} from '../index.
|
|
21
|
+
} from '../index.js';
|
|
22
22
|
|
|
23
23
|
function createAdapter(config: LinearAdapterConfig = {}): LinearAdapter {
|
|
24
24
|
const client: RelayFileClientLike = {
|
|
@@ -327,7 +327,7 @@ test('computeSemantics extracts issue priority, state, labels, and relations det
|
|
|
327
327
|
});
|
|
328
328
|
|
|
329
329
|
test('barrel exports import cleanly for runtime and type-checked usage', async () => {
|
|
330
|
-
const barrel = await import('../index.
|
|
330
|
+
const barrel = await import('../index.js');
|
|
331
331
|
|
|
332
332
|
assert.equal(barrel.LinearAdapter, LinearAdapter);
|
|
333
333
|
assert.equal(barrel.computeLinearPath, computeLinearPath);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
LINEAR_WEBHOOK_ACTIONS,
|
|
6
6
|
LINEAR_WEBHOOK_OBJECT_TYPES,
|
|
7
7
|
type LinearAdapterConfig,
|
|
8
|
-
} from '../index.
|
|
8
|
+
} from '../index.js';
|
|
9
9
|
|
|
10
10
|
test('exports supported Linear webhook object types', () => {
|
|
11
11
|
assert.deepEqual(LINEAR_WEBHOOK_OBJECT_TYPES, ['comment', 'cycle', 'issue', 'project']);
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Public barrel for runtime helpers, normalizers, and exported types.
|
|
2
|
-
export * from './linear-adapter.
|
|
3
|
-
export * from './path-mapper.
|
|
4
|
-
export * from './webhook-normalizer.
|
|
5
|
-
export * from './types.
|
|
2
|
+
export * from './linear-adapter.js';
|
|
3
|
+
export * from './path-mapper.js';
|
|
4
|
+
export * from './webhook-normalizer.js';
|
|
5
|
+
export * from './types.js';
|
package/src/linear-adapter.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
linearIssuePath,
|
|
8
8
|
linearProjectPath,
|
|
9
9
|
normalizeLinearObjectType,
|
|
10
|
-
} from './path-mapper.
|
|
10
|
+
} from './path-mapper.js';
|
|
11
11
|
import type {
|
|
12
12
|
LinearAdapterConfig,
|
|
13
13
|
LinearComment,
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
LinearState,
|
|
20
20
|
LinearUser,
|
|
21
21
|
LinearWebhookPayload,
|
|
22
|
-
} from './types.
|
|
22
|
+
} from './types.js';
|
|
23
23
|
|
|
24
24
|
export interface FileSemantics {
|
|
25
25
|
properties?: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHmac, timingSafeEqual } from 'node:crypto';
|
|
2
2
|
|
|
3
|
-
import type { NormalizedWebhook } from './linear-adapter.
|
|
3
|
+
import type { NormalizedWebhook } from './linear-adapter.js';
|
|
4
4
|
|
|
5
5
|
export const LINEAR_PROVIDER = 'linear';
|
|
6
6
|
export const LINEAR_SIGNATURE_HEADER = 'linear-signature';
|