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

@atlaskit/util-service-support

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/util-service-support - npm Package Compare versions

Comparing version 6.0.5 to 6.1.0

8

build/tsconfig.json

@@ -12,3 +12,7 @@ {

],
"exclude": ["../src/**/__tests__/*"]
}
"exclude": [
"../src/**/__tests__/*",
"../src/**/*.test.*",
"../src/**/test.*"
]
}
# @atlaskit/util-service-support
## 6.1.0
### Minor Changes
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Remove unused polyfills
## 6.0.5

@@ -4,0 +10,0 @@

"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _typeof = require("@babel/runtime/helpers/typeof");

@@ -43,3 +43,7 @@ Object.defineProperty(exports, "__esModule", {

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var utils = serviceUtils;
exports.utils = utils;
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

@@ -14,13 +12,8 @@

var URL = _interopRequireWildcard(require("url"));
var _urlSearchParams = _interopRequireDefault(require("url-search-params"));
var _types = require("./types");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var URLSearchParams = _urlSearchParams.default.default || _urlSearchParams.default;
var defaultRequestServiceOptions = {};

@@ -32,3 +25,5 @@

var secOptions = arguments.length > 3 ? arguments[3] : undefined;
var searchParam = new URLSearchParams(URL.parse(baseUrl).search || undefined);
var searchParam = new URLSearchParams( // For relative urls, the URL class requires base to be set. It's ignored if a url is not relative.
// Since we only care about search params it is fine to have any base url here.
new URL(baseUrl, 'https://BASE_FALLBACK').search || undefined);
baseUrl = baseUrl.split('?')[0];

@@ -35,0 +30,0 @@

{
"name": "@atlaskit/util-service-support",
"version": "6.0.5"
"version": "6.1.0"
}

@@ -1,10 +0,8 @@

import * as URL from 'url';
import USP from 'url-search-params'; // IE, Safari, Mobile Chrome, Mobile Safari
import { buildCredentials } from './types';
const URLSearchParams = USP.default || USP;
const defaultRequestServiceOptions = {};
const buildUrl = (baseUrl, path = '', queryParams, secOptions) => {
const searchParam = new URLSearchParams(URL.parse(baseUrl).search || undefined);
const searchParam = new URLSearchParams( // For relative urls, the URL class requires base to be set. It's ignored if a url is not relative.
// Since we only care about search params it is fine to have any base url here.
new URL(baseUrl, 'https://BASE_FALLBACK').search || undefined);
baseUrl = baseUrl.split('?')[0];

@@ -11,0 +9,0 @@

{
"name": "@atlaskit/util-service-support",
"version": "6.0.5"
"version": "6.1.0"
}
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
import * as URL from 'url';
import USP from 'url-search-params'; // IE, Safari, Mobile Chrome, Mobile Safari
import { buildCredentials } from './types';
var URLSearchParams = USP.default || USP;
var defaultRequestServiceOptions = {};

@@ -18,3 +14,5 @@

var secOptions = arguments.length > 3 ? arguments[3] : undefined;
var searchParam = new URLSearchParams(URL.parse(baseUrl).search || undefined);
var searchParam = new URLSearchParams( // For relative urls, the URL class requires base to be set. It's ignored if a url is not relative.
// Since we only care about search params it is fine to have any base url here.
new URL(baseUrl, 'https://BASE_FALLBACK').search || undefined);
baseUrl = baseUrl.split('?')[0];

@@ -21,0 +19,0 @@

{
"name": "@atlaskit/util-service-support",
"version": "6.0.5"
"version": "6.1.0"
}
{
"name": "@atlaskit/util-service-support",
"version": "6.0.5",
"version": "6.1.0",
"description": "A library of support classes for integrating React components with REST HTTP services",

@@ -18,3 +18,4 @@ "publishConfig": {

"deprecatedAutoEntryPoints": true,
"releaseModel": "continuous"
"releaseModel": "continuous",
"team": "AFP: Monorepo"
},

@@ -25,8 +26,7 @@ "config": {

"dependencies": {
"@babel/runtime": "^7.0.0",
"url": "^0.11.0",
"url-search-params": "^0.10.0"
"@babel/runtime": "^7.0.0"
},
"devDependencies": {
"@atlaskit/docs": "*",
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
"es6-promise": "^4.0.5",

@@ -46,3 +46,4 @@ "fetch-mock": "^8.0.0",

}
}
},
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
}
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