This commit is contained in:
Jaco Greeff
2020-03-21 11:37:03 +01:00
committed by GitHub
parent 6f5adca0cc
commit ee613b1578
5 changed files with 18 additions and 17 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const getWorkspaces = require('get-yarn-workspaces');
const workspaces = getWorkspaces(__dirname).filter(item => {
return path.normalize(item) !== path.normalize(__dirname);
});
let workspacesBuildDirs = workspaces.map(workspace => path.join(workspace, 'build/'));
workspacesBuildDirs = workspacesBuildDirs.filter(item => item !== path.join(__dirname, '../reactnative-identicon/build/'));
const workspaces = getWorkspaces(__dirname).filter((item) =>
path.normalize(item) !== path.normalize(__dirname)
);
let workspacesBuildDirs = workspaces.map((workspace) => path.join(workspace, 'build/'));
workspacesBuildDirs = workspacesBuildDirs.filter((item) => item !== path.join(__dirname, '../reactnative-identicon/build/'));
module.exports = {
@@ -2,6 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
/* eslint-disable no-global-assign */
import 'fast-text-encoding';
import AsyncStorage from '@react-native-community/async-storage';
@@ -19,7 +20,7 @@ class Storage {
return [...data];
}
getItem = key => {
getItem = (key) => {
return this.dataMap.get(key);
}
@@ -28,12 +29,12 @@ class Storage {
return AsyncStorage.setItem(key, value);
}
remove = key => {
remove = (key) => {
this.dataMap.delete(key);
return AsyncStorage.removeItem(key);
}
saveItem = item => {
saveItem = (item) => {
this.dataMap.set(item[0], item[1]);
}
}