clickgo 3.0.5-dev6 → 3.0.6-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/lib/fs.js +1 -1
- package/dist/lib/fs.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
19
19
|
**index.html**
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.3.0/dist/loader.min.js?path=index&npm={'clickgo':'3.0.
|
|
22
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.3.0/dist/loader.min.js?path=index&npm={'clickgo':'3.0.6-dev7'}"></script>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**index.js**
|
package/dist/lib/fs.js
CHANGED
|
@@ -27,7 +27,7 @@ function getContent(path, options) {
|
|
|
27
27
|
const encoding = options.encoding;
|
|
28
28
|
const start = options.start;
|
|
29
29
|
const end = options.end;
|
|
30
|
-
if (path.startsWith('/clickgo/') || path.startsWith('http:') || path.startsWith('https:')) {
|
|
30
|
+
if (path.startsWith('/clickgo/') || path.startsWith('http:') || path.startsWith('https:') || path.startsWith('file:')) {
|
|
31
31
|
let ourl = '';
|
|
32
32
|
if (path.startsWith('/clickgo/')) {
|
|
33
33
|
if (!clickgoFiles.includes(fpath)) {
|
package/dist/lib/fs.ts
CHANGED
|
@@ -51,7 +51,7 @@ export async function getContent(path: string, options?: BufferEncoding | {
|
|
|
51
51
|
const encoding = options.encoding;
|
|
52
52
|
const start = options.start;
|
|
53
53
|
const end = options.end;
|
|
54
|
-
if (path.startsWith('/clickgo/') || path.startsWith('http:') || path.startsWith('https:')) {
|
|
54
|
+
if (path.startsWith('/clickgo/') || path.startsWith('http:') || path.startsWith('https:') || path.startsWith('file:')) {
|
|
55
55
|
let ourl: string = '';
|
|
56
56
|
if (path.startsWith('/clickgo/')) {
|
|
57
57
|
if (!clickgoFiles.includes(fpath)) {
|