resend 0.13.0 → 0.13.1
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/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"homepage": "https://github.com/resend-inc/resend-node#readme",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@react-email/render": "0.0.7",
|
|
31
|
-
"axios": "1.3.
|
|
31
|
+
"axios": "1.3.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/jest": "29.5.
|
|
34
|
+
"@types/jest": "29.5.1",
|
|
35
35
|
"@types/node": "18.15.6",
|
|
36
36
|
"@types/react": "18.0.32",
|
|
37
37
|
"axios-mock-adapter": "1.21.4",
|
|
38
38
|
"jest": "29.5.0",
|
|
39
|
-
"prettier": "2.8.
|
|
39
|
+
"prettier": "2.8.8",
|
|
40
40
|
"supertest": "6.3.3",
|
|
41
41
|
"ts-jest": "29.1.0",
|
|
42
42
|
"tslint": "6.1.3",
|
|
@@ -24,11 +24,13 @@ describe('API Keys', () => {
|
|
|
24
24
|
it('creates an api key', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
25
|
mock.onPost('/api-keys', { name: 'Test' }).replyOnce(201, {
|
|
26
26
|
token: 're_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk',
|
|
27
|
+
id: '430eed87-632a-4ea6-90db-0aace67ec228',
|
|
27
28
|
});
|
|
28
29
|
const resend = new resend_1.Resend('re_zKa4RCko_Lhm9ost2YjNCctnPjbLw8Nop');
|
|
29
30
|
yield expect(resend.apiKeys.create({ name: 'Test' })).resolves
|
|
30
31
|
.toMatchInlineSnapshot(`
|
|
31
32
|
{
|
|
33
|
+
"id": "430eed87-632a-4ea6-90db-0aace67ec228",
|
|
32
34
|
"token": "re_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk",
|
|
33
35
|
}
|
|
34
36
|
`);
|
|
@@ -57,10 +59,12 @@ describe('API Keys', () => {
|
|
|
57
59
|
.onPost('/api-keys', { name: 'Test', permission: 'full_access' })
|
|
58
60
|
.replyOnce(201, {
|
|
59
61
|
token: 're_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk',
|
|
62
|
+
id: '430eed87-632a-4ea6-90db-0aace67ec228',
|
|
60
63
|
});
|
|
61
64
|
const resend = new resend_1.Resend('re_zKa4RCko_Lhm9ost2YjNCctnPjbLw8Nop');
|
|
62
65
|
yield expect(resend.apiKeys.create({ name: 'Test', permission: 'full_access' })).resolves.toMatchInlineSnapshot(`
|
|
63
66
|
{
|
|
67
|
+
"id": "430eed87-632a-4ea6-90db-0aace67ec228",
|
|
64
68
|
"token": "re_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk",
|
|
65
69
|
}
|
|
66
70
|
`);
|
|
@@ -74,6 +78,7 @@ describe('API Keys', () => {
|
|
|
74
78
|
})
|
|
75
79
|
.replyOnce(201, {
|
|
76
80
|
token: 're_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk',
|
|
81
|
+
id: '430eed87-632a-4ea6-90db-0aace67ec228',
|
|
77
82
|
});
|
|
78
83
|
const resend = new resend_1.Resend('re_zKa4RCko_Lhm9ost2YjNCctnPjbLw8Nop');
|
|
79
84
|
yield expect(resend.apiKeys.create({
|
|
@@ -81,6 +86,7 @@ describe('API Keys', () => {
|
|
|
81
86
|
permission: 'sending_access',
|
|
82
87
|
})).resolves.toMatchInlineSnapshot(`
|
|
83
88
|
{
|
|
89
|
+
"id": "430eed87-632a-4ea6-90db-0aace67ec228",
|
|
84
90
|
"token": "re_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk",
|
|
85
91
|
}
|
|
86
92
|
`);
|
|
@@ -112,6 +118,7 @@ describe('API Keys', () => {
|
|
|
112
118
|
})
|
|
113
119
|
.replyOnce(201, {
|
|
114
120
|
token: 're_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk',
|
|
121
|
+
id: '430eed87-632a-4ea6-90db-0aace67ec228',
|
|
115
122
|
});
|
|
116
123
|
const resend = new resend_1.Resend('re_zKa4RCko_Lhm9ost2YjNCctnPjbLw8Nop');
|
|
117
124
|
yield expect(resend.apiKeys.create({
|
|
@@ -120,6 +127,7 @@ describe('API Keys', () => {
|
|
|
120
127
|
domain_id: '7dfcf219-9900-4169-86f3-801e6d9b935e',
|
|
121
128
|
})).resolves.toMatchInlineSnapshot(`
|
|
122
129
|
{
|
|
130
|
+
"id": "430eed87-632a-4ea6-90db-0aace67ec228",
|
|
123
131
|
"token": "re_PKr4RCko_Lhm9ost2YjNCctnPjbLw8Nqk",
|
|
124
132
|
}
|
|
125
133
|
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"homepage": "https://github.com/resend-inc/resend-node#readme",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@react-email/render": "0.0.7",
|
|
31
|
-
"axios": "1.3.
|
|
31
|
+
"axios": "1.3.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/jest": "29.5.
|
|
34
|
+
"@types/jest": "29.5.1",
|
|
35
35
|
"@types/node": "18.15.6",
|
|
36
36
|
"@types/react": "18.0.32",
|
|
37
37
|
"axios-mock-adapter": "1.21.4",
|
|
38
38
|
"jest": "29.5.0",
|
|
39
|
-
"prettier": "2.8.
|
|
39
|
+
"prettier": "2.8.8",
|
|
40
40
|
"supertest": "6.3.3",
|
|
41
41
|
"ts-jest": "29.1.0",
|
|
42
42
|
"tslint": "6.1.3",
|