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

@mcma/client

Package Overview
Dependencies
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcma/client - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

9

dist/lib/http/http-client.js

@@ -6,9 +6,2 @@ "use strict";

const headers_1 = require("./headers");
const dateFormat = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/;
function reviver(key, value) {
if (typeof value === "string" && dateFormat.test(value)) {
return new Date(value);
}
return value;
}
class HttpClient {

@@ -64,3 +57,3 @@ constructor(authenticator) {

try {
return JSON.parse(data, reviver);
return JSON.parse(data, core_1.Utils.reviver);
}

@@ -67,0 +60,0 @@ catch (_a) {

@@ -5,9 +5,2 @@ "use strict";

const http_1 = require("../http");
const dateFormat = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/;
function reviver(key, value) {
if (typeof value === "string" && dateFormat.test(value)) {
return new Date(value);
}
return value;
}
class ResourceEndpointClient {

@@ -56,3 +49,3 @@ constructor(resourceEndpoint, authProvider, serviceAuthType, serviceAuthContext) {

try {
return JSON.parse(data, reviver);
return JSON.parse(data, core_1.Utils.reviver);
}

@@ -59,0 +52,0 @@ catch (_a) {

6

package.json
{
"name": "@mcma/client",
"version": "0.9.5",
"version": "0.9.6",
"description": "Node module with classes and functions used to access services in an MCMA environment",

@@ -35,6 +35,6 @@ "engines": {

"peerDependencies": {
"@mcma/core": "0.9.5"
"@mcma/core": "0.9.6"
},
"devDependencies": {
"@mcma/core": "0.9.5",
"@mcma/core": "0.9.6",
"@types/node": "^13.7.4",

@@ -41,0 +41,0 @@ "jasmine": "^3.3.1"

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