@signpostmarv/ts-assert 0.2.0 → 0.2.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/lib/main.d.ts +1 -1
- package/lib/main.js +2 -2
- package/package.json +5 -5
- package/.github/FUNDING.yml +0 -2
- package/.github/workflows/ci.yml +0 -25
package/lib/main.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function isTokenWithExpectedKind(maybe: Node, expected_kind: ts.S
|
|
|
7
7
|
export declare function isExpectedIdentifier<T = string>(maybe: Node, expected: T, message?: string | Error): asserts maybe is Identifier & {
|
|
8
8
|
escapedText: T;
|
|
9
9
|
};
|
|
10
|
-
export declare function isUndefined(maybe: Node): asserts maybe is Identifier & {
|
|
10
|
+
export declare function isUndefined(maybe: Node, message?: string | Error): asserts maybe is Identifier & {
|
|
11
11
|
escapedText: 'undefined';
|
|
12
12
|
};
|
|
13
13
|
declare const _default: {
|
package/lib/main.js
CHANGED
|
@@ -14,8 +14,8 @@ export function isExpectedIdentifier(maybe, expected, message) {
|
|
|
14
14
|
isIdentifier(maybe, message);
|
|
15
15
|
assert.equal(maybe.escapedText, expected, message);
|
|
16
16
|
}
|
|
17
|
-
export function isUndefined(maybe) {
|
|
18
|
-
isExpectedIdentifier(maybe, 'undefined');
|
|
17
|
+
export function isUndefined(maybe, message) {
|
|
18
|
+
isExpectedIdentifier(maybe, 'undefined', message);
|
|
19
19
|
}
|
|
20
20
|
export default {
|
|
21
21
|
...generated,
|
package/package.json
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/SignpostMarv/ts-assert.git"
|
|
9
9
|
},
|
|
10
|
+
"funding": "https://github.com/SignpostMarv/ts-assert?sponsor=1",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"test": "ts-node ./tests.ts"
|
|
12
13
|
},
|
|
13
14
|
"exports": {
|
|
14
15
|
".": "./lib/main.js"
|
|
15
16
|
},
|
|
17
|
+
"types": "./lib/main.d.ts",
|
|
16
18
|
"devDependencies": {
|
|
17
19
|
"@types/eslint": "^8.56.7",
|
|
18
|
-
"@types/glob": "^8.1.0",
|
|
19
20
|
"@types/node": "^20.12.7",
|
|
20
|
-
"c8": "^
|
|
21
|
+
"c8": "^10.1.2",
|
|
21
22
|
"eslint": "^8.57.0",
|
|
22
23
|
"prettier": "^3.2.5",
|
|
23
24
|
"ts-node": "^10.9.2",
|
|
24
|
-
"tslib": "^2.6.2",
|
|
25
25
|
"typescript-eslint": "^7.6.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"typescript": "
|
|
28
|
+
"typescript": "~5.4.5"
|
|
29
29
|
},
|
|
30
|
-
"version": "0.2.
|
|
30
|
+
"version": "0.2.2"
|
|
31
31
|
}
|
package/.github/FUNDING.yml
DELETED
package/.github/workflows/ci.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: [main]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
basic-checks:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v4
|
|
12
|
-
- uses: actions/setup-node@v4
|
|
13
|
-
with:
|
|
14
|
-
node-version: 21.x
|
|
15
|
-
cache: 'npm'
|
|
16
|
-
- run: npm ci
|
|
17
|
-
- run: make lint
|
|
18
|
-
- name: Generate coverage
|
|
19
|
-
run: ./node_modules/.bin/c8 --config=./.c8rc.coveralls.json npm test
|
|
20
|
-
env:
|
|
21
|
-
NODE_OPTIONS: '--enable-source-maps --no-warnings=ExperimentalWarning --loader ts-node/esm'
|
|
22
|
-
- name: Coveralls GitHub Action
|
|
23
|
-
uses: coverallsapp/github-action@v2.2.3
|
|
24
|
-
with:
|
|
25
|
-
file: './coverage/lcov.info'
|