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

aurelia-http-utils

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-http-utils - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

2

dist/main/content-type.d.ts
export declare class ContentType {
static valueOf(value: string): ContentType;
static APPLICATION_JSON: ContentType;

@@ -15,3 +16,2 @@ static APPLICATION_JSON_PATCH: ContentType;

toString(): string;
static valueOf(value: string): ContentType;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var media_type_1 = require("./media-type");

@@ -11,2 +12,10 @@ var ContentType = (function () {

}
ContentType.valueOf = function (value) {
var params = value.split(";");
var _a = params.shift().split("/"), type = _a[0], subtype = _a[1];
return new ContentType(type, subtype, new Map(params.map(function (param) {
var indexOfEqualSign = param.indexOf("=");
return [param.substring(0, indexOfEqualSign), param.substring(indexOfEqualSign + 1)];
})));
};
ContentType.prototype.getType = function () {

@@ -40,10 +49,2 @@ return this.type;

};
ContentType.valueOf = function (value) {
var params = value.split(";");
var _a = params.shift().split("/"), type = _a[0], subtype = _a[1];
return new ContentType(type, subtype, new Map(params.map(function (param) {
var indexOfEqualSign = param.indexOf("=");
return [param.substring(0, indexOfEqualSign), param.substring(indexOfEqualSign + 1)];
})));
};
return ContentType;

@@ -50,0 +51,0 @@ }());

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Headers = (function () {

@@ -3,0 +4,0 @@ function Headers() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var HttpHeaders = (function () {

@@ -3,0 +4,0 @@ function HttpHeaders() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var http_headers_1 = require("./http-headers");

@@ -3,0 +4,0 @@ exports.HttpHeaders = http_headers_1.HttpHeaders;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LinkHeaderParser = (function () {

@@ -3,0 +4,0 @@ function LinkHeaderParser() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MediaType = (function () {

@@ -3,0 +4,0 @@ function MediaType() {

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var multipart_1 = require("./multipart");

@@ -8,0 +14,0 @@ var content_type_1 = require("./content-type");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Multipart = (function () {

@@ -3,0 +4,0 @@ function Multipart(boundary) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var headers_1 = require("./headers");

@@ -3,0 +4,0 @@ var http_headers_1 = require("./http-headers");

{
"name": "aurelia-http-utils",
"version": "0.3.1",
"version": "0.4.0",
"description": "A collection of utilities to interact via HTTP.",

@@ -28,18 +28,18 @@ "keywords": [

"devDependencies": {
"@types/jasmine": "^2.5.40",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"@types/jasmine": "^2.5.47",
"babel-preset-es2015": "^6.24.1",
"babel-register": "^6.24.1",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-jasmine": "^2.4.2",
"gulp-sass": "^3.0.0",
"gulp-sourcemaps": "^1.9.1",
"gulp-typescript": "^3.1.3",
"jasmine": "^2.5.2",
"jasmine-reporters": "^2.2.0",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.6.0",
"gulp-typescript": "^3.1.6",
"jasmine": "^2.5.3",
"jasmine-reporters": "^2.2.1",
"merge2": "^1.0.3",
"run-sequence": "^1.2.2",
"typescript": "^2.1.4",
"typescript": "^2.2.2",
"vinyl-paths": "^2.1.0"
}
}

@@ -5,2 +5,11 @@ import { MediaType } from "./media-type";

public static valueOf(value: string): ContentType {
let params = value.split(";");
let [ type, subtype ] = params.shift().split("/");
return new ContentType(type, subtype, new Map<string, string>(<[string, string][]>params.map(param => {
let indexOfEqualSign = param.indexOf("=");
return [ param.substring(0, indexOfEqualSign), param.substring(indexOfEqualSign + 1) ];
})));
}
public static APPLICATION_JSON = ContentType.valueOf(MediaType.APPLICATION_JSON);

@@ -57,11 +66,2 @@

public static valueOf(value: string): ContentType {
let params = value.split(";");
let [ type, subtype ] = params.shift().split("/");
return new ContentType(type, subtype, new Map<string, string>(<[string, string][]>params.map(param => {
let indexOfEqualSign = param.indexOf("=");
return [ param.substring(0, indexOfEqualSign), param.substring(indexOfEqualSign + 1) ];
})));
}
}

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

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

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