Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/fe-mockserver-core

Package Overview
Dependencies
Maintainers
3
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/fe-mockserver-core - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

dist/data/dataAccess.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc