@sap-ux/fe-mockserver-core
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -626,3 +626,3 @@ "use strict"; | ||
} | ||
const dataLength = (Array.isArray(data) && data.length) || 1; | ||
const dataLength = Array.isArray(data) ? data.length : 1; | ||
odataRequest.setDataCount(dataLength); | ||
@@ -629,0 +629,0 @@ // Apply $skip / $top |
@@ -11,2 +11,3 @@ "use strict"; | ||
const query_string_1 = require("query-string"); | ||
const url_1 = require("url"); | ||
class ODataRequest { | ||
@@ -21,3 +22,3 @@ constructor(requestContent, dataAccess) { | ||
const decodedUrl = requestContent.url; | ||
const parsedUrl = new URL(`http://dummy${decodedUrl}`); | ||
const parsedUrl = new url_1.URL(`http://dummy${decodedUrl}`); | ||
this.tenantId = requestContent.tenantId || 'tenant-default'; | ||
@@ -264,3 +265,3 @@ this.context = requestContent.url.split('?')[0].substring(1); | ||
const retrievedData = await this.dataAccess.getData(this); | ||
if (!retrievedData) { | ||
if (retrievedData === undefined) { | ||
this.statusCode = 404; | ||
@@ -267,0 +268,0 @@ this.setResponseData(''); |
{ | ||
"name": "@sap-ux/fe-mockserver-core", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "SAP Fiori OData - Fiori elements mock server core", | ||
@@ -17,4 +17,4 @@ "repository": { | ||
"dependencies": { | ||
"@sap-ux/annotation-converter": "0.5.11", | ||
"@sap-ux/edmx-parser": "0.5.5", | ||
"@sap-ux/annotation-converter": "0.5.12", | ||
"@sap-ux/edmx-parser": "0.5.6", | ||
"@ui5/logger": "2.0.1", | ||
@@ -62,4 +62,3 @@ "balanced-match": "1.0.0", | ||
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u" | ||
}, | ||
"readme": "# @sap-ux/fe-mockserver-core\n\n## Features\n\nThe **SAP Fiori - Mockserver** is the core middleware used by the ui5 middleware of the same name.\n\nIt provides a middleware that can be used in standard express or http.Router based application.\n\n## Installation\nnpm\n`npm install --save-dev @sap-ux/fe-mockserver-core`\n\nyarn\n`yarn add @sap-ux/fe-mockserver-core --dev`\n\npnpm\n`pnpm add @sap-ux/fe-mockserver-core --dev`\n\n## Usage\n\nMost likely you will consume this through the @sap-ux/ui5-middleware-fe-mockserver package, otherwise do check the tests as it is not meant to be consumed directly :)\n\n## Keywords\nMockserver " | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4894
418613
+ Added@sap-ux/annotation-converter@0.5.12(transitive)
+ Added@sap-ux/edmx-parser@0.5.6(transitive)
- Removed@sap-ux/annotation-converter@0.5.11(transitive)
- Removed@sap-ux/edmx-parser@0.5.5(transitive)
Updated@sap-ux/edmx-parser@0.5.6