@lowdefy/jest-yaml-transform 4.7.3 → 5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.0.0
4
+
3
5
  ## 4.7.3
4
6
 
5
7
  ## 4.7.2
package/dist/index.js CHANGED
@@ -30,12 +30,12 @@ function _interop_require_default(obj) {
30
30
  };
31
31
  }
32
32
  function getCacheKey(fileData, filePath, options) {
33
- var optionsString = typeof options === "string" ? options : JSON.stringify(options);
34
- return _crypto.default.createHash("sha1").update(fileData).update(optionsString).digest("base64");
33
+ var optionsString = typeof options === 'string' ? options : JSON.stringify(options);
34
+ return _crypto.default.createHash('sha1').update(fileData).update(optionsString).digest('base64');
35
35
  }
36
36
  function process(sourceText) {
37
37
  return {
38
- code: "module.exports = ".concat(JSON.stringify(_yaml.default.parse(sourceText), null, " "))
38
+ code: "module.exports = ".concat(JSON.stringify(_yaml.default.parse(sourceText), null, '\t'))
39
39
  };
40
40
  }
41
41
  var transformer = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/jest-yaml-transform",
3
- "version": "4.7.3",
3
+ "version": "5.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A Jest Transform for YAML.",
6
6
  "main": "./dist/index.js",
@@ -26,9 +26,9 @@
26
26
  "url": "https://github.com/lowdefy/lowdefy.git"
27
27
  },
28
28
  "dependencies": {
29
- "@swc/cli": "0.1.63",
30
- "@swc/core": "1.3.99",
31
- "@swc/jest": "0.2.29",
29
+ "@swc/cli": "0.8.0",
30
+ "@swc/core": "1.15.18",
31
+ "@swc/jest": "0.2.39",
32
32
  "jest": "28.1.3",
33
33
  "yaml": "2.3.4"
34
34
  },
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "scripts": {
39
- "build": "swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start",
39
+ "build": "swc src --out-dir dist --config-file ./.swcrc --cli-config-file ../../../.swc-cli.json",
40
40
  "clean": "rm -rf dist"
41
41
  }
42
42
  }