Skip to content

Commit 8bbb2ad

Browse files
committed
update util to live in server
1 parent 981da2e commit 8bbb2ad

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

client/modules/IDE/components/Header/resolveUtils.unit.test.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// resolveUtils.unit.test.jsx
22

3-
import resolvePathsForElementsWithAttribute from '../../../../../common_utils/resolveUtils';
3+
import resolvePathsForElementsWithAttribute from '../../../../../server/utils/resolveUtils';
44
import { resolvePathToFile } from '../../../../../server/utils/filePath';
55

66
// Mock the dependencies

client/modules/Preview/EmbedFrame.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { getAllScriptOffsets } from '../../utils/consoleUtils';
1818
import { registerFrame } from '../../utils/dispatcher';
1919
import { createBlobUrl } from './filesReducer';
20-
import resolvePathsForElementsWithAttribute from '../../../common_utils/resolveUtils';
20+
import resolvePathsForElementsWithAttribute from '../../../server/utils/resolveUtils';
2121

2222
let objectUrls = {};
2323
let objectPaths = {};

server/utils/previewGeneration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { resolvePathToFile } from '../utils/filePath';
2-
import { resolvePathsForElementsWithAttribute } from '../../common_utils/resolveUtils';
2+
import { resolvePathsForElementsWithAttribute } from '../utils/resolveUtils';
33

44
import {
55
STRING_REGEX,

common_utils/resolveUtils.js renamed to server/utils/resolveUtils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { resolvePathToFile } from '../server/utils/filePath';
2-
import { MEDIA_FILE_REGEX } from '../server/utils/fileUtils';
1+
import { resolvePathToFile } from './filePath';
2+
import { MEDIA_FILE_REGEX } from './fileUtils';
33

44
/**
55
* Resolves paths for elements with a specific attribute.

0 commit comments

Comments
 (0)