@lowdefy/jest-yaml-transform 4.0.0-rc.9 → 4.0.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.
@@ -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,191 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.1
4
+
5
+ ## 4.0.0
6
+
3
7
  All notable changes to this project will be documented in this file.
4
8
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
9
 
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)
10
+ # [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
11
 
8
12
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
9
13
 
14
+ # [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
15
 
16
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
11
17
 
18
+ # [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
19
 
20
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
13
21
 
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
-
22
+ # [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
23
 
17
24
  ### Bug Fixes
18
25
 
19
- * **deps:** update dependency yaml to v2.2.2 [security] ([8e015fe](https://github.com/lowdefy/lowdefy/commit/8e015fec47a40bc5233f23d8da345720475d1232))
20
-
26
+ - Deepsource style fixes. ([2086f5d](https://github.com/lowdefy/lowdefy/commit/2086f5d2e8e5665ec5fd16ce83e59119571f833d))
21
27
 
28
+ # [4.0.0-rc.11](https://github.com/lowdefy/lowdefy/compare/v4.0.0-rc.10...v4.0.0-rc.11) (2023-10-06)
22
29
 
30
+ ### Bug Fixes
23
31
 
32
+ - **deps:** Dependencies patch updates. ([adcd80a](https://github.com/lowdefy/lowdefy/commit/adcd80afe8c752e15c900b88eb4d9be8526c7bcd))
33
+ - **deps:** Update dependency yaml to 2.3.2 ([cbcdc7d](https://github.com/lowdefy/lowdefy/commit/cbcdc7d3e313fca96fa52bc4724344a061d9f444))
24
34
 
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)
35
+ # [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
36
 
27
37
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
28
38
 
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)
39
+ # [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
40
 
35
41
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
36
42
 
43
+ # [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
44
 
45
+ ### Bug Fixes
38
46
 
47
+ - **deps:** update dependency yaml to v2.2.2 [security] ([8e015fe](https://github.com/lowdefy/lowdefy/commit/8e015fec47a40bc5233f23d8da345720475d1232))
39
48
 
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)
49
+ # [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
50
 
43
51
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
44
52
 
53
+ # [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
54
 
55
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
46
56
 
57
+ # [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
58
 
59
+ **Note:** Version bump only for package @lowdefy/jest-yaml-transform
48
60
 
49
61
  # [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
62
 
51
63
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
52
64
 
53
-
54
-
55
-
56
-
57
65
  # [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
66
 
59
67
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
60
68
 
61
-
62
-
63
-
64
-
65
69
  # [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
70
 
67
71
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
68
72
 
69
-
70
-
71
-
72
-
73
73
  # [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
74
 
75
-
76
75
  ### Bug Fixes
77
76
 
78
- * **deps:** Update minor versions of util packages. ([2d7a2a5](https://github.com/lowdefy/lowdefy/commit/2d7a2a55c88f0ee33eff49e5ff541f6296ec4337))
79
-
80
-
81
-
82
-
77
+ - **deps:** Update minor versions of util packages. ([2d7a2a5](https://github.com/lowdefy/lowdefy/commit/2d7a2a55c88f0ee33eff49e5ff541f6296ec4337))
83
78
 
84
79
  # [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
80
 
86
81
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
87
82
 
88
-
89
-
90
-
91
-
92
83
  # [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
84
 
94
85
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
95
86
 
96
-
97
-
98
-
99
-
100
87
  # [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
88
 
102
89
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
103
90
 
104
-
105
-
106
-
107
-
108
91
  # [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
92
 
110
93
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
111
94
 
112
-
113
-
114
-
115
-
116
95
  # [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
96
 
118
97
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
119
98
 
120
-
121
-
122
-
123
-
124
99
  # [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
100
 
126
101
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
127
102
 
128
-
129
-
130
-
131
-
132
103
  # [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
104
 
134
105
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
135
106
 
136
-
137
-
138
-
139
-
140
107
  # [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
108
 
142
109
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
143
110
 
144
-
145
-
146
-
147
-
148
111
  # [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
112
 
150
113
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
151
114
 
152
-
153
-
154
-
155
-
156
115
  # [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
116
 
158
117
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
159
118
 
160
-
161
-
162
-
163
-
164
119
  # [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
120
 
166
121
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
167
122
 
168
-
169
-
170
-
171
-
172
123
  # [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
124
 
174
125
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
175
126
 
176
-
177
-
178
-
179
-
180
127
  # [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
128
 
182
129
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
183
130
 
184
-
185
-
186
-
187
-
188
131
  # [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
132
 
190
133
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
191
134
 
192
-
193
-
194
-
195
-
196
135
  # [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
136
 
198
137
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
199
138
 
200
-
201
-
202
-
203
-
204
139
  # [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
140
 
206
141
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
207
142
 
208
-
209
-
210
-
211
-
212
143
  # [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
144
 
214
145
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
215
146
 
216
-
217
-
218
-
219
-
220
147
  # [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
148
 
222
149
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
223
150
 
224
-
225
-
226
-
227
-
228
151
  # [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
152
 
230
153
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
231
154
 
232
-
233
-
234
-
235
-
236
155
  # [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
156
 
238
157
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
239
158
 
240
-
241
-
242
-
243
-
244
159
  # [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
160
 
246
-
247
-
248
161
  # [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
162
 
250
-
251
-
252
163
  # [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
164
 
254
165
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
255
166
 
256
-
257
-
258
-
259
-
260
167
  # [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
168
 
262
169
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
263
170
 
264
-
265
-
266
-
267
-
268
171
  # [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
172
 
270
173
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
271
174
 
272
-
273
-
274
-
275
-
276
175
  # [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
176
 
278
177
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
279
178
 
280
-
281
-
282
-
283
-
284
179
  # [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
180
 
286
181
  **Note:** Version bump only for package @lowdefy/jest-yaml-transform
287
182
 
288
-
289
-
290
-
291
-
292
183
  # [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
184
 
294
-
295
185
  ### Bug Fixes
296
186
 
297
- * Fix license typo. ([972acbb](https://github.com/lowdefy/lowdefy/commit/972acbb46b9b1113053797f82a41c5f9032dd8b0))
298
-
187
+ - Fix license typo. ([972acbb](https://github.com/lowdefy/lowdefy/commit/972acbb46b9b1113053797f82a41c5f9032dd8b0))
299
188
 
300
189
  ### Features
301
190
 
302
- * **utils:** Add jest-yaml-transform package. ([dd9dbe4](https://github.com/lowdefy/lowdefy/commit/dd9dbe49895830b49b6602841ded0c5c285020c3))
191
+ - **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.1",
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) {