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

@dhis2/app-runtime

Package Overview
Dependencies
Maintainers
14
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2/app-runtime - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

build/cjs/index.js

@@ -549,2 +549,5 @@ 'use strict';

}
const parseContentType = contentType => {
return contentType ? contentType.split(';')[0].trim().toLowerCase() : null;
};
const parseStatus = async response => {

@@ -588,3 +591,3 @@ if (response.status === 401 || response.status === 403 || response.status === 409) {

}).then(parseStatus).then(async response => {
if (response.headers.get('Content-Type') === 'application/json') {
if (parseContentType(response.headers.get('Content-Type')) === 'application/json') {
return await response.json(); // Will throw if invalid JSON!

@@ -591,0 +594,0 @@ }

@@ -542,2 +542,5 @@ import React, { useRef, useState, useEffect, useCallback, useContext } from 'react';

}
const parseContentType = contentType => {
return contentType ? contentType.split(';')[0].trim().toLowerCase() : null;
};
const parseStatus = async response => {

@@ -581,3 +584,3 @@ if (response.status === 401 || response.status === 403 || response.status === 409) {

}).then(parseStatus).then(async response => {
if (response.headers.get('Content-Type') === 'application/json') {
if (parseContentType(response.headers.get('Content-Type')) === 'application/json') {
return await response.json(); // Will throw if invalid JSON!

@@ -584,0 +587,0 @@ }

6

package.json
{
"name": "@dhis2/app-runtime",
"description": "A singular runtime dependency for applications on the DHIS2 platform",
"version": "2.0.0",
"version": "2.0.1",
"main": "build/cjs/index.js",

@@ -22,4 +22,4 @@ "module": "build/es/index.js",

"devDependencies": {
"@dhis2/app-service-config": "2.0.0",
"@dhis2/app-service-data": "2.0.0"
"@dhis2/app-service-config": "2.0.1",
"@dhis2/app-service-data": "2.0.1"
},

@@ -26,0 +26,0 @@ "peerDependencies": {

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