Skip to content

Commit af07eaa

Browse files
committed
refactor: dependencies
1 parent 79071db commit af07eaa

11 files changed

Lines changed: 710 additions & 1505 deletions

File tree

LICENSE-thirdParty

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
## thirparty/buffer-min.js
2-
3-
The buffer module from node.js, for the browser.
4-
5-
6-
Git: https://github.com/feross/buffer
7-
Copyright (C) Feross Aboukhadijeh, and other contributors.
8-
Originally forked from an MIT-licensed module by Romain Beauxis.
9-
MIT License
10-
111
## thirparty/idb-min.js
122
ISC License (ISC)
133
Copyright (c) 2016, Jake Archibald <jaffathecake@gmail.com>
144

15-
## thirparty/globmatch.js
16-
modified version of https://www.npmjs.com/package/minimatch
5+
## https://www.npmjs.com/package/anymatch
176
ISC License (ISC)
7+
Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
8+
9+
## https://www.npmjs.com/package/ws
10+
MIT License
11+
Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
12+
Copyright (c) 2013 Arnout Kazemier and contributors
13+
Copyright (c) 2016 Luigi Pinca and contributors
14+
15+
## https://www.npmjs.com/package/iconv-lite
16+
MIT License
17+
Copyright (c) 2011 Alexander Shtuchkin

dist/virtualfs.js

Lines changed: 465 additions & 411 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/virtualfs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
],
4343
"devDependencies": {
4444
"@tauri-apps/cli": "1.4.0",
45+
"anymatch": "^3.1.3",
4546
"browser-mime": "1.0.1",
4647
"buffer": "^6.0.3",
4748
"eslint": "8.19.0",
@@ -51,6 +52,7 @@
5152
"idb": "7.0.1",
5253
"open-cli": "7.0.1",
5354
"parcel": "2.9.3",
55+
"path-browserify": "^1.0.1",
5456
"process": "0.11.10",
5557
"run.env": "1.1.0",
5658
"string_decoder": "^1.3.0",

src-tauri/node-src/package-lock.json

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/node-src/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"url": "https://github.com/phcode-dev/phoenix-fs"
1616
},
1717
"WARN!!!": "Dont forget to copy the deps here to the root package.json as that is the deps used by third partys who import this lib from npm",
18+
"IMPORTANT!!": "Do not add big dependencies, keep it as minimal. Currently at 21 node modeule files and 148KB",
1819
"dependencies": {
19-
"ws": "^8.13.0"
20+
"ws": "^8.13.0",
21+
"chokidar": "^3.5.3"
2022
}
2123
}

src/fslib_watch.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
let _channel = null;
2626
let _watchListeners = [];
27-
const globMatch = require('./thirdparty/globmatch');
27+
const anymatch = require('anymatch');
2828

2929
const WATCH_EVENT_NOTIFICATION = 'PHOENIX_WATCH_EVENT_NOTIFICATION';
3030
const WATCH_EVENT_CREATED = 'created';
@@ -49,14 +49,7 @@ function _broadcastWatchEvent(event) {
4949
}
5050

5151
function _isAnIgnoredPath(path, ignoreGlobList) {
52-
if(ignoreGlobList && ignoreGlobList.length > 0){
53-
for (const glob of ignoreGlobList){
54-
if (globMatch(path, glob)) {
55-
return true;
56-
}
57-
}
58-
}
59-
return false;
52+
return anymatch(ignoreGlobList, path);
6053
}
6154

6255
function _isSameOrSubDirectory(parent, child) {

src/thirdparty/buffer-min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)