@atlaskit/util-service-support
Advanced tools
Comparing version 6.0.5 to 6.1.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41671
1
752
6
- Removedurl@^0.11.0
- Removedurl-search-params@^0.10.0
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.13.1(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedurl@0.11.4(transitive)
- Removedurl-search-params@0.10.2(transitive)