mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature: cloudcmd: ponse v8.0.0
This commit is contained in:
parent
1e1b073c8c
commit
591da25cfe
6 changed files with 8 additions and 8 deletions
|
|
@ -127,7 +127,7 @@
|
|||
"open": "^11.0.0",
|
||||
"package-json": "^10.0.0",
|
||||
"pipe-io": "^4.0.1",
|
||||
"ponse": "^7.0.0",
|
||||
"ponse": "^8.0.0",
|
||||
"pullout": "^5.0.0",
|
||||
"putout": "^42.0.5",
|
||||
"redzip": "^4.6.1",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import fs from 'node:fs';
|
|||
import {fullstore} from 'fullstore';
|
||||
import currify from 'currify';
|
||||
import apart from 'apart';
|
||||
import ponse from 'ponse';
|
||||
import * as ponse from 'ponse';
|
||||
import {restafary} from 'restafary';
|
||||
import restbox from 'restbox';
|
||||
import {konsole} from 'console-io';
|
||||
|
|
@ -186,7 +186,7 @@ function cloudcmdMiddle({modules, config}) {
|
|||
const zip = apart(config, 'zip');
|
||||
const root = apart(config, 'root');
|
||||
|
||||
const ponseStatic = ponse.static({
|
||||
const ponseStatic = ponse.createStatic({
|
||||
cache,
|
||||
root: DIR_ROOT,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import currify from 'currify';
|
|||
import wraptile from 'wraptile';
|
||||
import {tryToCatch} from 'try-to-catch';
|
||||
import pullout from 'pullout';
|
||||
import ponse from 'ponse';
|
||||
import * as ponse from 'ponse';
|
||||
import jonny from 'jonny';
|
||||
import jju from 'jju';
|
||||
import writejson from 'writejson';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import {callbackify} from 'node:util';
|
|||
import {fileURLToPath} from 'node:url';
|
||||
import {dirname} from 'node:path';
|
||||
import pullout from 'pullout';
|
||||
import ponse from 'ponse';
|
||||
import {getQuery} from 'ponse';
|
||||
import {read} from 'redzip';
|
||||
import root from '../root.js';
|
||||
import parse from './worker.js';
|
||||
|
|
@ -40,7 +40,7 @@ function parseName(query, name, rootDir) {
|
|||
}
|
||||
|
||||
async function onGET(request, name, root) {
|
||||
const query = ponse.getQuery(request);
|
||||
const query = getQuery(request);
|
||||
const fileName = parseName(query, name, root);
|
||||
const stream = await read(fileName);
|
||||
const data = await pullout(stream);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import wraptile from 'wraptile';
|
|||
import currify from 'currify';
|
||||
import pullout from 'pullout';
|
||||
import json from 'jonny';
|
||||
import ponse from 'ponse';
|
||||
import * as ponse from 'ponse';
|
||||
import {copymitter} from 'copymitter';
|
||||
import _moveFiles from '@cloudcmd/move-files';
|
||||
import * as CloudFunc from '#common/cloudfunc';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {createRequire} from 'node:module';
|
||||
import {extname} from 'node:path';
|
||||
import * as _win32 from 'win32';
|
||||
import ponse from 'ponse';
|
||||
import * as ponse from 'ponse';
|
||||
import {rendy} from 'rendy';
|
||||
import format from 'format-io';
|
||||
import currify from 'currify';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue