Skip to content

Commit 13e6357

Browse files
committed
Merge branch 'release/0.4.0' into released
2 parents 29bf130 + d936851 commit 13e6357

File tree

171 files changed

+3119
-1563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+3119
-1563
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ jobs:
3838
- .rpt2_cache
3939
key: build-cache
4040
- run: sudo apt-get install zip
41-
- run: zip -r commonjs.zip dist/
4241
- run: zip -r esmodule.zip es/
4342
- store_artifacts:
44-
path: commonjs.zip
43+
path: umd/index.js
44+
destination: /index.js
4545
- store_artifacts:
46-
path: esmodule.zip
46+
path: umd/index.js.map
47+
destination: /index.js.map
4748
- store_artifacts:
48-
path: dist/out.js
49+
path: esmodule.zip
50+
destination: /esmodule.zip

.gitignore

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
/es
3-
/dist
2+
# temp file
43
/temp
54
.rpt2_cache
6-
tsdoc-metadata.json
5+
76
# dependencies
87
/node_modules
9-
/.pnp
10-
.pnp.js
118

129
# testing
1310
/coverage
1411

1512
# production
16-
/build
13+
/es
14+
/umd
15+
tsdoc-metadata.json
1716

1817
# misc
1918
.DS_Store
20-
.env.local
21-
.env.development.local
22-
.env.test.local
23-
.env.production.local
2419

2520
npm-debug.log*
2621
yarn-debug.log*

.npmignore

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
1-
.DS_Store
2-
*.log*
3-
*.tsbuildinfo
4-
/temp
5-
.rpt2_cache
6-
tsdoc-metadata.json
7-
# dependencies
8-
/node_modules
9-
/.pnp
10-
.pnp.js
1+
# config
2+
/.vscode
3+
/.circleci
114

12-
# testing
13-
/coverage
5+
# use less build output
6+
/umd/**/*.ts
7+
/umd/**/*.ts.map
148

15-
# production
16-
/build
9+
# can be regenerated
10+
/api-documents
1711

18-
# misc
19-
.DS_Store
20-
.env.local
21-
.env.development.local
22-
.env.test.local
23-
.env.production.local
12+
# temp file
13+
/temp
14+
*.tsbuildinfo
15+
/.rpt2_cache
2416

17+
# misc
2518
npm-debug.log*
2619
yarn-debug.log*
2720
yarn-error.log*

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"typescript.tsdk": "node_modules\\typescript\\lib",
32
"search.exclude": {
4-
"**/api-document": true
3+
"**/api-documents": true
54
}
6-
}
5+
}

.vscode/tasks.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
2-
// 有关 tasks.json 格式的文档,请参见
2+
// 有关 tasks.json 格式的文档,请参见
33
// https://go.microsoft.com/fwlink/?LinkId=733558
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "npm",
8-
"script": "start-tsc",
9-
"problemMatcher": [
10-
"$tsc-watch"
11-
],
12-
"isBackground": true
7+
"type": "typescript",
8+
"tsconfig": "tsconfig.json",
9+
"option": "watch",
10+
"problemMatcher": ["$tsc-watch"],
11+
"label": "holoflows"
1312
}
1413
]
15-
}
14+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @holoflows/kit · ![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@holoflows/kit.svg?style=flat-square)](https://www.npmjs.com/package/@holoflows/kit) ![Ciecle CI](https://img.shields.io/circleci/project/github/DimensionDev/Holoflows-Kit.svg?style=flat-square&logo=circleci)
1+
# @holoflows/kit · ![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@holoflows/kit.svg?style=flat-square)](https://www.npmjs.com/package/@holoflows/kit) ![Ciecle CI](https://img.shields.io/circleci/project/github/DimensionDev/holoflows-kit.svg?style=flat-square&logo=circleci)
22

33
Toolkit for modern web browser extension developing.
44

api-documents/kit.asynccall.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Async call between different context.
99
<b>Signature:</b>
1010

1111
```typescript
12-
export declare function AsyncCall<OtherSideImplementedFunctions = {}>(implementation: Default, options?: Partial<AsyncCallOptions>): OtherSideImplementedFunctions;
12+
export declare function AsyncCall<OtherSideImplementedFunctions = {}>(implementation?: Record<string, (...args: any[]) => any>, options?: Partial<AsyncCallOptions>): OtherSideImplementedFunctions;
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| implementation | <code>Default</code> | Implementation of this side. |
19+
| implementation | <code>Record&lt;string, (...args: any[]) =&gt; any&gt;</code> | Implementation of this side. |
2020
| options | <code>Partial&lt;AsyncCallOptions&gt;</code> | Define your own serializer, MessageCenter or other options. |
2121

2222
<b>Returns:</b>

api-documents/kit.asynccalloptions.dontthrowonnotimplemented.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

api-documents/kit.asynccalloptions.key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AsyncCallOptions.key property
66

7+
A key to prevent collision with other AsyncCalls. Can be anything, but need to be the same on the both side.
8+
79
<b>Signature:</b>
810

911
```typescript
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@holoflows/kit](./kit.md) &gt; [AsyncCallOptions](./kit.asynccalloptions.md) &gt; [log](./kit.asynccalloptions.log.md)
4+
5+
## AsyncCallOptions.log property
6+
7+
Log what to console
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
log: {
13+
beCalled?: boolean;
14+
localError?: boolean;
15+
remoteError?: boolean;
16+
type?: 'basic' | 'pretty';
17+
} | boolean;
18+
```

0 commit comments

Comments
 (0)