Skip to content

Commit a276e49

Browse files
author
Dylan Ross
committed
doesn't create deferred struct until we parse arguments
1 parent 17fd396 commit a276e49

37 files changed

+155
-137
lines changed

.changeset/nice-pears-join.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'c2pa-node': patch
3+
---
4+
5+
fixes issue where we leave unsettled promises in the rust layer, which caused unhandled promise rejections in the js layer

docs/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ An asset that can either be in memory or on disk
6161

6262
#### Defined in
6363

64-
[bindings.ts:154](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L154)
64+
[bindings.ts:154](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L154)
6565

6666
___
6767

@@ -71,7 +71,7 @@ ___
7171

7272
#### Defined in
7373

74-
[lib/manifestBuilder.ts:21](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L21)
74+
[lib/manifestBuilder.ts:21](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L21)
7575

7676
___
7777

@@ -81,7 +81,7 @@ ___
8181

8282
#### Defined in
8383

84-
[index.ts:28](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/index.ts#L28)
84+
[index.ts:28](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/index.ts#L28)
8585

8686
___
8787

@@ -99,7 +99,7 @@ ___
9999

100100
#### Defined in
101101

102-
[index.ts:18](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/index.ts#L18)
102+
[index.ts:18](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/index.ts#L18)
103103

104104
___
105105

@@ -109,7 +109,7 @@ ___
109109

110110
#### Defined in
111111

112-
[lib/hash.ts:17](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/hash.ts#L17)
112+
[lib/hash.ts:17](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/hash.ts#L17)
113113

114114
___
115115

@@ -119,7 +119,7 @@ ___
119119

120120
#### Defined in
121121

122-
[bindings.ts:353](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L353)
122+
[bindings.ts:353](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L353)
123123

124124
___
125125

@@ -135,7 +135,7 @@ ___
135135

136136
#### Defined in
137137

138-
[bindings.ts:225](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L225)
138+
[bindings.ts:225](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L225)
139139

140140
___
141141

@@ -161,7 +161,7 @@ ___
161161

162162
#### Defined in
163163

164-
[bindings.ts:201](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L201)
164+
[bindings.ts:201](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L201)
165165

166166
___
167167

@@ -171,7 +171,7 @@ ___
171171

172172
#### Defined in
173173

174-
[lib/signer.ts:50](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L50)
174+
[lib/signer.ts:50](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L50)
175175

176176
## Functions
177177

@@ -193,7 +193,7 @@ Creates an instance of the SDK that encompasses a set of global options
193193

194194
#### Defined in
195195

196-
[index.ts:38](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/index.ts#L38)
196+
[index.ts:38](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/index.ts#L38)
197197

198198
___
199199

@@ -213,4 +213,4 @@ ___
213213

214214
#### Defined in
215215

216-
[lib/signer.ts:64](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L64)
216+
[lib/signer.ts:64](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L64)

docs/classes/ManifestBuilder.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
#### Defined in
4444

45-
[lib/manifestBuilder.ts:41](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L41)
45+
[lib/manifestBuilder.ts:41](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L41)
4646

4747
## Properties
4848

@@ -52,7 +52,7 @@
5252

5353
#### Defined in
5454

55-
[lib/manifestBuilder.ts:35](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L35)
55+
[lib/manifestBuilder.ts:35](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L35)
5656

5757
___
5858

@@ -62,7 +62,7 @@ ___
6262

6363
#### Defined in
6464

65-
[lib/manifestBuilder.ts:39](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L39)
65+
[lib/manifestBuilder.ts:39](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L39)
6666

6767
___
6868

@@ -72,7 +72,7 @@ ___
7272

7373
#### Defined in
7474

75-
[lib/manifestBuilder.ts:37](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L37)
75+
[lib/manifestBuilder.ts:37](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L37)
7676

7777
___
7878

@@ -82,7 +82,7 @@ ___
8282

8383
#### Defined in
8484

85-
[lib/manifestBuilder.ts:33](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L33)
85+
[lib/manifestBuilder.ts:33](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L33)
8686

8787
## Accessors
8888

@@ -96,7 +96,7 @@ ___
9696

9797
#### Defined in
9898

99-
[lib/manifestBuilder.ts:105](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L105)
99+
[lib/manifestBuilder.ts:105](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L105)
100100

101101
___
102102

@@ -110,7 +110,7 @@ ___
110110

111111
#### Defined in
112112

113-
[lib/manifestBuilder.ts:109](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L109)
113+
[lib/manifestBuilder.ts:109](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L109)
114114

115115
## Methods
116116

@@ -130,7 +130,7 @@ ___
130130

131131
#### Defined in
132132

133-
[lib/manifestBuilder.ts:72](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L72)
133+
[lib/manifestBuilder.ts:72](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L72)
134134

135135
___
136136

@@ -150,7 +150,7 @@ ___
150150

151151
#### Defined in
152152

153-
[lib/manifestBuilder.ts:86](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L86)
153+
[lib/manifestBuilder.ts:86](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L86)
154154

155155
___
156156

@@ -170,7 +170,7 @@ ___
170170

171171
#### Defined in
172172

173-
[lib/manifestBuilder.ts:118](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L118)
173+
[lib/manifestBuilder.ts:118](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L118)
174174

175175
___
176176

@@ -190,4 +190,4 @@ ___
190190

191191
#### Defined in
192192

193-
[lib/manifestBuilder.ts:95](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/manifestBuilder.ts#L95)
193+
[lib/manifestBuilder.ts:95](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/manifestBuilder.ts#L95)

docs/enums/SigningAlgorithm.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#### Defined in
2424

25-
[lib/signer.ts:16](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L16)
25+
[lib/signer.ts:16](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L16)
2626

2727
___
2828

@@ -32,7 +32,7 @@ ___
3232

3333
#### Defined in
3434

35-
[lib/signer.ts:18](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L18)
35+
[lib/signer.ts:18](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L18)
3636

3737
___
3838

@@ -42,7 +42,7 @@ ___
4242

4343
#### Defined in
4444

45-
[lib/signer.ts:20](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L20)
45+
[lib/signer.ts:20](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L20)
4646

4747
___
4848

@@ -52,7 +52,7 @@ ___
5252

5353
#### Defined in
5454

55-
[lib/signer.ts:28](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L28)
55+
[lib/signer.ts:28](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L28)
5656

5757
___
5858

@@ -62,7 +62,7 @@ ___
6262

6363
#### Defined in
6464

65-
[lib/signer.ts:22](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L22)
65+
[lib/signer.ts:22](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L22)
6666

6767
___
6868

@@ -72,7 +72,7 @@ ___
7272

7373
#### Defined in
7474

75-
[lib/signer.ts:24](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L24)
75+
[lib/signer.ts:24](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L24)
7676

7777
___
7878

@@ -82,4 +82,4 @@ ___
8282

8383
#### Defined in
8484

85-
[lib/signer.ts:26](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/lib/signer.ts#L26)
85+
[lib/signer.ts:26](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/lib/signer.ts#L26)

docs/enums/types.ManifestAssertionKind.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Assertions in C2PA can be stored in several formats
2323

2424
#### Defined in
2525

26-
[types.d.ts:112](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L112)
26+
[types.d.ts:112](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L112)
2727

2828
___
2929

@@ -33,7 +33,7 @@ ___
3333

3434
#### Defined in
3535

36-
[types.d.ts:113](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L113)
36+
[types.d.ts:113](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L113)
3737

3838
___
3939

@@ -43,7 +43,7 @@ ___
4343

4444
#### Defined in
4545

46-
[types.d.ts:114](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L114)
46+
[types.d.ts:114](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L114)
4747

4848
___
4949

@@ -53,4 +53,4 @@ ___
5353

5454
#### Defined in
5555

56-
[types.d.ts:115](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L115)
56+
[types.d.ts:115](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L115)

docs/enums/types.Relationship.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There can only be one parent ingredient in the ingredients.
2323

2424
#### Defined in
2525

26-
[types.d.ts:272](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L272)
26+
[types.d.ts:272](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L272)
2727

2828
___
2929

@@ -33,4 +33,4 @@ ___
3333

3434
#### Defined in
3535

36-
[types.d.ts:273](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/types.d.ts#L273)
36+
[types.d.ts:273](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/types.d.ts#L273)

docs/interfaces/BufferAsset.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#### Defined in
1919

20-
[bindings.ts:138](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L138)
20+
[bindings.ts:138](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L138)
2121

2222
___
2323

@@ -27,4 +27,4 @@ ___
2727

2828
#### Defined in
2929

30-
[bindings.ts:140](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L140)
30+
[bindings.ts:140](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L140)

docs/interfaces/CreateIngredientProps.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#### Defined in
2121

22-
[bindings.ts:363](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L363)
22+
[bindings.ts:363](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L363)
2323

2424
___
2525

@@ -29,7 +29,7 @@ ___
2929

3030
#### Defined in
3131

32-
[bindings.ts:370](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L370)
32+
[bindings.ts:370](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L370)
3333

3434
___
3535

@@ -39,7 +39,7 @@ ___
3939

4040
#### Defined in
4141

42-
[bindings.ts:368](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L368)
42+
[bindings.ts:368](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L368)
4343

4444
___
4545

@@ -49,4 +49,4 @@ ___
4949

5050
#### Defined in
5151

52-
[bindings.ts:365](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L365)
52+
[bindings.ts:365](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L365)

docs/interfaces/FileAsset.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#### Defined in
1919

20-
[bindings.ts:148](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L148)
20+
[bindings.ts:148](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L148)
2121

2222
___
2323

@@ -27,4 +27,4 @@ ___
2727

2828
#### Defined in
2929

30-
[bindings.ts:145](https://github.com/contentauth/c2pa-node/blob/ba516c3/js-src/bindings.ts#L145)
30+
[bindings.ts:145](https://github.com/contentauth/c2pa-node/blob/17fd396/js-src/bindings.ts#L145)

0 commit comments

Comments
 (0)