Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/filterStorage.js

Issue 29715555: Issue 6447 - Switch to Harmony modules in lib/* (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 6, 2018, 7:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/common.js ('K') | « lib/filterNotifier.js ('k') | lib/matcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterStorage.js
===================================================================
--- a/lib/filterStorage.js
+++ b/lib/filterStorage.js
@@ -17,36 +17,35 @@
"use strict";
/**
* @fileOverview FilterStorage class responsible for managing user's
* subscriptions and filters.
*/
-const {IO} = require("io");
-const {Prefs} = require("prefs");
-const {Filter, ActiveFilter} = require("./filterClasses");
-const {Subscription, SpecialSubscription,
- ExternalSubscription} = require("./subscriptionClasses");
-const {FilterNotifier} = require("./filterNotifier");
+import {IO} from "io";
+import {Prefs} from "prefs";
+import {Filter, ActiveFilter} from "./filterClasses";
+import {Subscription, SpecialSubscription,
+ ExternalSubscription} from "./subscriptionClasses";
+import {FilterNotifier} from "./filterNotifier";
/**
* Version number of the filter storage file format.
* @type {number}
*/
let formatVersion = 5;
/**
* This class reads user's filters from disk, manages them in memory
* and writes them back.
* @class
*/
-let FilterStorage = exports.FilterStorage =
-{
+export let FilterStorage = {
/**
* Will be set to true after the initial loadFromDisk() call completes.
* @type {boolean}
*/
initialized: false,
/**
* Version number of the patterns.ini format used.
« lib/common.js ('K') | « lib/filterNotifier.js ('k') | lib/matcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld