@mediatool/frontend-tools 1.4.2 → 1.4.3

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/dist/mtft.cjs CHANGED
@@ -6,6 +6,7 @@ var vite = require('vite');
6
6
  var promises = require('fs/promises');
7
7
  var path = require('path');
8
8
  var ramda = require('ramda');
9
+ var yafu = require('yafu');
9
10
  var module$1 = require('module');
10
11
  var child_process = require('child_process');
11
12
 
@@ -39,7 +40,7 @@ async function getModuleContext () {
39
40
  const entryLocation = await getEntryFileLocation(location);
40
41
  const pkg = JSON.parse(await promises.readFile(pkgLocation));
41
42
  const { name } = pkg;
42
- const dependencies = ramda.uniq(ramda.keys({ ...pkg.dependencies, ...pkg.peerDependencies }));
43
+ const dependencies = yafu.uniq(ramda.keys({ ...pkg.dependencies, ...pkg.peerDependencies }));
43
44
  return {
44
45
  entry: entryLocation,
45
46
  root: location,
@@ -1,7 +1,8 @@
1
1
  import { readFile, stat } from 'fs/promises'
2
2
  import { resolve } from 'path'
3
3
  // eslint-disable-next-line import/no-extraneous-dependencies
4
- import { keys, uniq } from 'ramda'
4
+ import { keys } from 'ramda'
5
+ import { uniq } from 'yafu'
5
6
 
6
7
  async function fileExists (location) {
7
8
  return stat(location)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediatool/frontend-tools",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Common configs and tooling for bundling, testing, linting frontend modules",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@babel/preset-react": "^7.18.6",
26
- "@mediatool/eslint-config-mediatool": "^1.6.0",
26
+ "@mediatool/eslint-config-mediatool": "^1.7.0",
27
27
  "@testing-library/react": "^13.4.0",
28
28
  "@testing-library/user-event": "^14.4.3",
29
29
  "@types/chai": "^4.3.4",
@@ -35,7 +35,8 @@
35
35
  "jsdom": "^20.0.2",
36
36
  "mocha": "^10.3.0",
37
37
  "tsx": "^4.7.1",
38
- "vite": "^3.2.4"
38
+ "vite": "^3.2.4",
39
+ "yafu": "^2.1.4"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "react": "^18.2.0",