@lowdefy/jest-yaml-transform 4.0.0-rc.9 → 4.0.0

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.
@@ -0,0 +1,5 @@
1
+
2
+ > @lowdefy/jest-yaml-transform@4.0.0-rc.15 build /Users/sam/Developer/lowdefy/lowdefy/packages/utils/jest-yaml-transform
3
+ > swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start
4
+
5
+ Successfully compiled: 1 file with swc (44.85ms)
package/CHANGELOG.md CHANGED
@@ -1,302 +1,189 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.0
4
+
3
5
  All notable changes to this project will be documented in this file.
4
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
7
 
6
- # [4.0.0-rc.9](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.8...v4.0.0-rc.9) (2023-05-31)
8
+ # [4.0.0-rc.15](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.14...v4.0.0-rc.15) (2023-12-05)
7
9
 
8
10
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
9
11
 
12
+ # [4.0.0-rc.14](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.14) (2023-11-17)
10
13
 
14
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
11
15
 
16
+ # [4.0.0-rc.13](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.12...v4.0.0-rc.13) (2023-11-17)
12
17
 
18
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
13
19
 
14
- # [4.0.0-rc.8](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.7...v4.0.0-rc.8) (2023-05-19)
15
-
20
+ # [4.0.0-rc.12](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.11...v4.0.0-rc.12) (2023-10-19)
16
21
 
17
22
  ### Bug Fixes
18
23
 
19
- * **deps:** update dependency yaml to v2.2.2 [security] ([8e015fe](https://github.com/lowdefy/lowdefy/commit/8e015fec47a40bc5233f23d8da345720475d1232))
24
+ - Deepsource style fixes. ([2086f5d](https://github.com/lowdefy/lowdefy/commit/2086f5d2e8e5665ec5fd16ce83e59119571f833d))
20
25
 
26
+ # [4.0.0-rc.11](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.10...v4.0.0-rc.11) (2023-10-06)
21
27
 
28
+ ### Bug Fixes
22
29
 
30
+ - **deps:** Dependencies patch updates. ([adcd80a](https://github.com/lowdefy/lowdefy/commit/adcd80afe8c752e15c900b88eb4d9be8526c7bcd))
31
+ - **deps:** Update dependency yaml to 2.3.2 ([cbcdc7d](https://github.com/lowdefy/lowdefy/commit/cbcdc7d3e313fca96fa52bc4724344a061d9f444))
23
32
 
24
-
25
- # [4.0.0-rc.7](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.6...v4.0.0-rc.7) (2023-03-24)
33
+ # [4.0.0-rc.10](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.9...v4.0.0-rc.10) (2023-07-26)
26
34
 
27
35
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
28
36
 
29
-
30
-
31
-
32
-
33
- # [4.0.0-rc.6](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.5...v4.0.0-rc.6) (2023-03-20)
37
+ # [4.0.0-rc.9](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.8...v4.0.0-rc.9) (2023-05-31)
34
38
 
35
39
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
36
40
 
41
+ # [4.0.0-rc.8](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.7...v4.0.0-rc.8) (2023-05-19)
37
42
 
43
+ ### Bug Fixes
38
44
 
45
+ - **deps:** update dependency yaml to v2.2.2 [security] ([8e015fe](https://github.com/lowdefy/lowdefy/commit/8e015fec47a40bc5233f23d8da345720475d1232))
39
46
 
40
-
41
- # [4.0.0-rc.5](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.4...v4.0.0-rc.5) (2023-02-24)
47
+ # [4.0.0-rc.7](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.6...v4.0.0-rc.7) (2023-03-24)
42
48
 
43
49
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
44
50
 
51
+ # [4.0.0-rc.6](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.5...v4.0.0-rc.6) (2023-03-20)
45
52
 
53
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
46
54
 
55
+ # [4.0.0-rc.5](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.4...v4.0.0-rc.5) (2023-02-24)
47
56
 
57
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
48
58
 
49
59
  # [4.0.0-rc.4](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.3...v4.0.0-rc.4) (2023-02-21)
50
60
 
51
61
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
52
62
 
53
-
54
-
55
-
56
-
57
63
  # [4.0.0-rc.3](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.2...v4.0.0-rc.3) (2023-02-21)
58
64
 
59
65
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
60
66
 
61
-
62
-
63
-
64
-
65
67
  # [4.0.0-rc.2](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.1...v4.0.0-rc.2) (2023-02-17)
66
68
 
67
69
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
68
70
 
69
-
70
-
71
-
72
-
73
71
  # [4.0.0-rc.1](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.0...v4.0.0-rc.1) (2023-02-17)
74
72
 
75
-
76
73
  ### Bug Fixes
77
74
 
78
- * **deps:** Update minor versions of util packages. ([2d7a2a5](https://github.com/lowdefy/lowdefy/commit/2d7a2a55c88f0ee33eff49e5ff541f6296ec4337))
79
-
80
-
81
-
82
-
75
+ - **deps:** Update minor versions of util packages. ([2d7a2a5](https://github.com/lowdefy/lowdefy/commit/2d7a2a55c88f0ee33eff49e5ff541f6296ec4337))
83
76
 
84
77
  # [4.0.0-rc.0](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.37...v4.0.0-rc.0) (2023-01-05)
85
78
 
86
79
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
87
80
 
88
-
89
-
90
-
91
-
92
81
  # [4.0.0-alpha.37](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.36...v4.0.0-alpha.37) (2022-12-07)
93
82
 
94
83
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
95
84
 
96
-
97
-
98
-
99
-
100
85
  # [4.0.0-alpha.36](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.35...v4.0.0-alpha.36) (2022-10-14)
101
86
 
102
87
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
103
88
 
104
-
105
-
106
-
107
-
108
89
  # [4.0.0-alpha.35](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2022-10-05)
109
90
 
110
91
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
111
92
 
112
-
113
-
114
-
115
-
116
93
  # [4.0.0-alpha.34](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2022-09-30)
117
94
 
118
95
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
119
96
 
120
-
121
-
122
-
123
-
124
97
  # [4.0.0-alpha.33](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) (2022-09-22)
125
98
 
126
99
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
127
100
 
128
-
129
-
130
-
131
-
132
101
  # [4.0.0-alpha.32](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.31...v4.0.0-alpha.32) (2022-09-22)
133
102
 
134
103
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
135
104
 
136
-
137
-
138
-
139
-
140
105
  # [4.0.0-alpha.31](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.30...v4.0.0-alpha.31) (2022-09-21)
141
106
 
142
107
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
143
108
 
144
-
145
-
146
-
147
-
148
109
  # [4.0.0-alpha.30](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2022-09-17)
149
110
 
150
111
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
151
112
 
152
-
153
-
154
-
155
-
156
113
  # [4.0.0-alpha.29](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2022-09-13)
157
114
 
158
115
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
159
116
 
160
-
161
-
162
-
163
-
164
117
  # [4.0.0-alpha.28](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2022-09-12)
165
118
 
166
119
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
167
120
 
168
-
169
-
170
-
171
-
172
121
  # [4.0.0-alpha.27](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2022-09-08)
173
122
 
174
123
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
175
124
 
176
-
177
-
178
-
179
-
180
125
  # [4.0.0-alpha.26](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.25...v4.0.0-alpha.26) (2022-08-25)
181
126
 
182
127
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
183
128
 
184
-
185
-
186
-
187
-
188
129
  # [4.0.0-alpha.25](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.24...v4.0.0-alpha.25) (2022-08-23)
189
130
 
190
131
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
191
132
 
192
-
193
-
194
-
195
-
196
133
  # [4.0.0-alpha.24](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2022-08-19)
197
134
 
198
135
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
199
136
 
200
-
201
-
202
-
203
-
204
137
  # [4.0.0-alpha.23](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2022-08-03)
205
138
 
206
139
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
207
140
 
208
-
209
-
210
-
211
-
212
141
  # [4.0.0-alpha.22](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2022-07-12)
213
142
 
214
143
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
215
144
 
216
-
217
-
218
-
219
-
220
145
  # [4.0.0-alpha.21](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.20...v4.0.0-alpha.21) (2022-07-11)
221
146
 
222
147
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
223
148
 
224
-
225
-
226
-
227
-
228
149
  # [4.0.0-alpha.20](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.19...v4.0.0-alpha.20) (2022-07-09)
229
150
 
230
151
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
231
152
 
232
-
233
-
234
-
235
-
236
153
  # [4.0.0-alpha.19](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2022-07-06)
237
154
 
238
155
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
239
156
 
240
-
241
-
242
-
243
-
244
157
  # [4.0.0-alpha.18](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2022-06-27)
245
158
 
246
-
247
-
248
159
  # [4.0.0-alpha.16](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.15...v4.0.0-alpha.16) (2022-06-20)
249
160
 
250
-
251
-
252
161
  # [4.0.0-alpha.15](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.14...v4.0.0-alpha.15) (2022-06-19)
253
162
 
254
163
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
255
164
 
256
-
257
-
258
-
259
-
260
165
  # [4.0.0-alpha.17](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2022-06-24)
261
166
 
262
167
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
263
168
 
264
-
265
-
266
-
267
-
268
169
  # [4.0.0-alpha.16](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.15...v4.0.0-alpha.16) (2022-06-20)
269
170
 
270
171
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
271
172
 
272
-
273
-
274
-
275
-
276
173
  # [4.0.0-alpha.15](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.13...v4.0.0-alpha.15) (2022-06-19)
277
174
 
278
175
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
279
176
 
280
-
281
-
282
-
283
-
284
177
  # [4.0.0-alpha.14](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.13...v4.0.0-alpha.14) (2022-06-19)
285
178
 
286
179
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
287
180
 
288
-
289
-
290
-
291
-
292
181
  # [4.0.0-alpha.13](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.12...v4.0.0-alpha.13) (2022-06-16)
293
182
 
294
-
295
183
  ### Bug Fixes
296
184
 
297
- * Fix license typo. ([972acbb](https://github.com/lowdefy/lowdefy/commit/972acbb46b9b1113053797f82a41c5f9032dd8b0))
298
-
185
+ - Fix license typo. ([972acbb](https://github.com/lowdefy/lowdefy/commit/972acbb46b9b1113053797f82a41c5f9032dd8b0))
299
186
 
300
187
  ### Features
301
188
 
302
- * **utils:** Add jest-yaml-transform package. ([dd9dbe4](https://github.com/lowdefy/lowdefy/commit/dd9dbe49895830b49b6602841ded0c5c285020c3))
189
+ - **utils:** Add jest-yaml-transform package. ([dd9dbe4](https://github.com/lowdefy/lowdefy/commit/dd9dbe49895830b49b6602841ded0c5c285020c3))
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -22,16 +22,16 @@ Object.defineProperty(exports, "default", {
22
22
  return _default;
23
23
  }
24
24
  });
25
- var _yaml = /*#__PURE__*/ _interopRequireDefault(require("yaml"));
26
- var _crypto = /*#__PURE__*/ _interopRequireDefault(require("crypto"));
27
- function _interopRequireDefault(obj) {
25
+ var _yaml = /*#__PURE__*/ _interop_require_default(require("yaml"));
26
+ var _crypto = /*#__PURE__*/ _interop_require_default(require("crypto"));
27
+ function _interop_require_default(obj) {
28
28
  return obj && obj.__esModule ? obj : {
29
29
  default: obj
30
30
  };
31
31
  }
32
32
  function getCacheKey(fileData, filePath, options) {
33
33
  var optionsString = typeof options === "string" ? options : JSON.stringify(options);
34
- return _crypto.default.createHash("md5").update(fileData).update(optionsString).digest("hex");
34
+ return _crypto.default.createHash("sha1").update(fileData).update(optionsString).digest("base64");
35
35
  }
36
36
  function process(sourceText) {
37
37
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/jest-yaml-transform",
3
- "version": "4.0.0-rc.9",
3
+ "version": "4.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A Jest Transform for YAML.",
6
6
  "main": "./dist/index.js",
@@ -25,20 +25,18 @@
25
25
  "type": "git",
26
26
  "url": "https://github.com/lowdefy/lowdefy.git"
27
27
  },
28
- "scripts": {
29
- "build": "swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start",
30
- "clean": "rm -rf dist",
31
- "prepublishOnly": "pnpm build"
32
- },
33
28
  "dependencies": {
34
- "@swc/cli": "0.1.59",
35
- "@swc/core": "1.3.24",
36
- "@swc/jest": "0.2.24",
37
- "jest": "28.1.0",
38
- "yaml": "2.2.2"
29
+ "@swc/cli": "0.1.63",
30
+ "@swc/core": "1.3.99",
31
+ "@swc/jest": "0.2.29",
32
+ "jest": "28.1.3",
33
+ "yaml": "2.3.4"
39
34
  },
40
35
  "publishConfig": {
41
36
  "access": "public"
42
37
  },
43
- "gitHead": "d20e6ac424643feca527a732dc2b0710713c8243"
44
- }
38
+ "scripts": {
39
+ "build": "swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start",
40
+ "clean": "rm -rf dist"
41
+ }
42
+ }
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import crypto from 'crypto';
19
19
 
20
20
  function getCacheKey(fileData, filePath, options) {
21
21
  const optionsString = typeof options === 'string' ? options : JSON.stringify(options);
22
- return crypto.createHash('md5').update(fileData).update(optionsString).digest('hex');
22
+ return crypto.createHash('sha1').update(fileData).update(optionsString).digest('base64');
23
23
  }
24
24
 
25
25
  function process(sourceText) {