Pārlūkot izejas kodu

refactor: drop unnecessary -web suffix

tophf 3 gadi atpakaļ
vecāks
revīzija
62b11ebbfe

+ 1 - 1
src/injected/web/gm-api-wrapper.js

@@ -1,7 +1,7 @@
 import bridge from './bridge';
 import { makeGmApi } from './gm-api';
 import { makeGlobalWrapper } from './gm-global-wrapper';
-import { makeComponentUtils, safeConcat } from './util-web';
+import { makeComponentUtils, safeConcat } from './util';
 
 /** Name in Greasemonkey4 -> name in GM */
 const GM4_ALIAS = {

+ 1 - 1
src/injected/web/gm-api.js

@@ -5,7 +5,7 @@ import { onTabCreate } from './tabs';
 import { onRequestCreate } from './requests';
 import { onNotificationCreate } from './notifications';
 import { decodeValue, dumpValue, loadValues, changeHooks } from './gm-values';
-import { jsonDump } from './util-web';
+import { jsonDump } from './util';
 
 export function makeGmApi() {
   return {

+ 1 - 1
src/injected/web/gm-global-wrapper.js

@@ -1,6 +1,6 @@
 import { INJECT_CONTENT } from '../util';
 import bridge from './bridge';
-import { FastLookup, safeConcat } from './util-web';
+import { FastLookup, safeConcat } from './util';
 
 /** The index strings that look exactly like integers can't be forged
  * but for example '011' doesn't look like 11 so it's allowed */

+ 0 - 0
src/injected/web/util-web.js → src/injected/web/util.js


+ 1 - 1
test/injected/helpers.test.js

@@ -1,5 +1,5 @@
 import test from 'tape';
-import { jsonDump } from '@/injected/web/util-web';
+import { jsonDump } from '@/injected/web/util';
 
 test('jsonDump', (t) => {
   const sameChildObj = { foo: 1 };