@opra/http 1.19.5 → 1.19.7
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/cjs/express-adapter.js
CHANGED
|
@@ -70,7 +70,7 @@ class ExpressAdapter extends http_adapter_js_1.HttpAdapter {
|
|
|
70
70
|
/** Add operation endpoints */
|
|
71
71
|
if (this.api.controllers.size) {
|
|
72
72
|
const processResource = (controller, currentPath) => {
|
|
73
|
-
currentPath = nodePath.join(currentPath, controller.path);
|
|
73
|
+
currentPath = nodePath.posix.join(currentPath, controller.path);
|
|
74
74
|
for (const operation of controller.operations.values()) {
|
|
75
75
|
const routePath = currentPath + (operation.path || '');
|
|
76
76
|
const controllerInstance = this._controllerInstances.get(controller);
|
|
@@ -51,7 +51,7 @@ class MultipartReader extends events_1.EventEmitter {
|
|
|
51
51
|
this.emit('item', item);
|
|
52
52
|
});
|
|
53
53
|
form.on('file', (field, file, info) => {
|
|
54
|
-
const saveTo = node_path_1.default.join(this.tempDirectory, `opra-${generateFileName()}`);
|
|
54
|
+
const saveTo = node_path_1.default.posix.join(this.tempDirectory, `opra-${generateFileName()}`);
|
|
55
55
|
file.pipe(node_fs_1.default.createWriteStream(saveTo));
|
|
56
56
|
file.once('end', () => {
|
|
57
57
|
const item = {
|
package/esm/express-adapter.js
CHANGED
|
@@ -66,7 +66,7 @@ export class ExpressAdapter extends HttpAdapter {
|
|
|
66
66
|
/** Add operation endpoints */
|
|
67
67
|
if (this.api.controllers.size) {
|
|
68
68
|
const processResource = (controller, currentPath) => {
|
|
69
|
-
currentPath = nodePath.join(currentPath, controller.path);
|
|
69
|
+
currentPath = nodePath.posix.join(currentPath, controller.path);
|
|
70
70
|
for (const operation of controller.operations.values()) {
|
|
71
71
|
const routePath = currentPath + (operation.path || '');
|
|
72
72
|
const controllerInstance = this._controllerInstances.get(controller);
|
|
@@ -47,7 +47,7 @@ export class MultipartReader extends EventEmitter {
|
|
|
47
47
|
this.emit('item', item);
|
|
48
48
|
});
|
|
49
49
|
form.on('file', (field, file, info) => {
|
|
50
|
-
const saveTo = nodePath.join(this.tempDirectory, `opra-${generateFileName()}`);
|
|
50
|
+
const saveTo = nodePath.posix.join(this.tempDirectory, `opra-${generateFileName()}`);
|
|
51
51
|
file.pipe(fs.createWriteStream(saveTo));
|
|
52
52
|
file.once('end', () => {
|
|
53
53
|
const item = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/http",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.7",
|
|
4
4
|
"description": "Opra Http Server Adapter",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"vary": "^1.1.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@opra/common": "^1.19.
|
|
39
|
-
"@opra/core": "^1.19.
|
|
38
|
+
"@opra/common": "^1.19.7",
|
|
39
|
+
"@opra/core": "^1.19.7"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
42
|
"express": "^4.0.0 || ^5.0.0",
|