New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backk-frontend-utils

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backk-frontend-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

lib/callRemoteService.js
import { Base64 } from 'js-base64';
import getJwtFromSessionStorage from './getJwtFromSessionStorage';
import { HTTPS_DEFAULT_PORT } from './constants/constants';
export default async function callRemoteService(microserviceName, serviceFunctionName, serviceFunctionArgument, microserviceNamespace, jwtStorageEncryptionKey, options) {
const response = await fetch(`https://${window.location.host}/${microserviceName}.${microserviceNamespace}/${serviceFunctionName}`, {
const serverPort = window.location.search
? window.location.search.split('serverPort=').pop() ?? HTTPS_DEFAULT_PORT
: HTTPS_DEFAULT_PORT;
const response = await fetch(`https://${window.location.hostname}:${serverPort}/${microserviceName}.${microserviceNamespace}/${serviceFunctionName}`, {
method: options?.httpMethod ?? 'POST',

@@ -6,0 +10,0 @@ body: serviceFunctionArgument ? JSON.stringify(serviceFunctionArgument) : undefined,

export declare const MAX_INT_VALUE = 2147483647;
export declare const HTTPS_DEFAULT_PORT = "443";
export declare class Lengths {

@@ -3,0 +4,0 @@ static readonly _1: number;

export const MAX_INT_VALUE = 2147483647;
export const HTTPS_DEFAULT_PORT = '443';
export class Lengths {

@@ -3,0 +4,0 @@ static _1 = 1;

2

package.json
{
"name": "backk-frontend-utils",
"version": "1.0.2",
"version": "1.0.3",
"description": "Web frontend utils for Backk microservices",

@@ -5,0 +5,0 @@ "author": {

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