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

@github1/ajax-service

Package Overview
Dependencies
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github1/ajax-service - npm Package Compare versions

Comparing version 0.3.18 to 0.3.19

2

es5/prepare_options.js

@@ -37,5 +37,7 @@ 'use strict';

var resolvedOrigin = resolveOrigin();
var origUrl = opts['url'];
var url = /^[a-z0-9]+:\/\//i.test(opts['url']) ? (0, _normalizeUrl2.default)(opts['url']) : (0, _normalizeUrl2.default)(resolvedOrigin + '/' + opts['url']);
var fetchOpts = {
url: url,
origUrl: origUrl,
method: opts['method'],

@@ -42,0 +44,0 @@ body: opts['data'],

@@ -15,2 +15,3 @@ 'use strict';

expect((0, _prepare_options2.default)({ url: '/foo' }).url).toMatch(/http:\/\/localhost:[^/]+\/foo/);
expect((0, _prepare_options2.default)({ url: '/foo' }).origUrl).toBe('/foo');
});

@@ -17,0 +18,0 @@ it('uses fully qualified urls', function () {

6

package.json
{
"name": "@github1/ajax-service",
"private": false,
"version": "0.3.18",
"version": "0.3.19",
"description": "Library for invoking HTTP requests with interceptors for JSON and AMF media types",

@@ -18,3 +18,3 @@ "main": "es5/index.js",

"devDependencies": {
"@github1/build-tools": "^0.3.18"
"@github1/build-tools": "^0.3.19"
},

@@ -29,3 +29,3 @@ "dependencies": {

},
"gitHead": "d85ce26565608a4ca11234e70d0852af96c8a390",
"gitHead": "827f5e98562eafcada3b0ae09e43bef782bb40a9",
"module": "index.js",

@@ -32,0 +32,0 @@ "repository": {

@@ -21,5 +21,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var resolvedOrigin = resolveOrigin();
var origUrl = opts['url'];
var url = /^[a-z0-9]+:\/\//i.test(opts['url']) ? normalizeURL(opts['url']) : normalizeURL(resolvedOrigin + '/' + opts['url']);
var fetchOpts = {
url: url,
origUrl: origUrl,
method: opts['method'],

@@ -26,0 +28,0 @@ body: opts['data'],

@@ -9,2 +9,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

expect(prepareOptions({ url: '/foo' }).url).toMatch(/http:\/\/localhost:[^/]+\/foo/);
expect(prepareOptions({ url: '/foo' }).origUrl).toBe('/foo');
});

@@ -11,0 +12,0 @@ it('uses fully qualified urls', function () {

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