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

@annotation-studio/redux

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotation-studio/redux - npm Package Compare versions

Comparing version 1.0.0-pr.7f188d19 to 1.0.0-pr.84b2ae73

54

es/lib/elucidate/index.js

@@ -8,4 +8,4 @@ import _asyncIterator from 'babel-runtime/helpers/asyncIterator';

var fetchPageCollection = function () {
var _ref3 = _asyncGenerator.wrap( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(resource) {
var currentPage, _iterator2, _isArray2, _i2, _ref4, item;
var _ref4 = _asyncGenerator.wrap( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(resource) {
var currentPage, _iterator2, _isArray2, _i2, _ref5, item;

@@ -43,3 +43,3 @@ return _regeneratorRuntime.wrap(function _callee2$(_context2) {

case 8:
_ref4 = _iterator2[_i2++];
_ref5 = _iterator2[_i2++];
_context2.next = 15;

@@ -59,6 +59,6 @@ break;

case 14:
_ref4 = _i2.value;
_ref5 = _i2.value;
case 15:
item = _ref4;
item = _ref5;
_context2.next = 18;

@@ -87,4 +87,4 @@ return item;

return function fetchPageCollection(_x5) {
return _ref3.apply(this, arguments);
return function fetchPageCollection(_x6) {
return _ref4.apply(this, arguments);
};

@@ -107,2 +107,5 @@ }();

var _ref = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {},
withoutCredentials = _ref.withoutCredentials;
return fetch(uri, {

@@ -112,3 +115,3 @@ method: method,

body: JSON.stringify(body),
credentials: process.env.NODE_ENV === 'production' ? 'include' : null,
credentials: withoutCredentials ? null : process.env.NODE_ENV === 'production' ? 'include' : null,
cache: process.env.NODE_ENV === 'production' ? 'default' : 'force-cache',

@@ -128,3 +131,8 @@ redirect: 'follow'

export function get(uri, body) {
return makeRequest('GET', uri, body);
try {
return makeRequest('GET', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('GET', uri, body, { withoutCredentials: true });
}
}

@@ -135,3 +143,8 @@

return makeRequest('POST', uri, body, headers);
try {
return makeRequest('POST', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('POST', uri, body, { withoutCredentials: true });
}
}

@@ -142,3 +155,8 @@

return makeRequest('PUT', uri, body, headers);
try {
return makeRequest('PUT', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('PUT', uri, body, { withoutCredentials: true });
}
}

@@ -151,4 +169,4 @@

export var getAllAnnotationsFromCollection = function () {
var _ref = _asyncGenerator.wrap( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(collectionResource) {
var firstPage, _iterator, _isArray, _i, _ref2, item, collection, _item;
var _ref2 = _asyncGenerator.wrap( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(collectionResource) {
var firstPage, _iterator, _isArray, _i, _ref3, item, collection, _item;

@@ -185,3 +203,3 @@ return _regeneratorRuntime.wrap(function _callee$(_context) {

case 7:
_ref2 = _iterator[_i++];
_ref3 = _iterator[_i++];
_context.next = 14;

@@ -201,6 +219,6 @@ break;

case 13:
_ref2 = _i.value;
_ref3 = _i.value;
case 14:
item = _ref2;
item = _ref3;
_context.next = 17;

@@ -253,4 +271,4 @@ return item;

return function getAllAnnotationsFromCollection(_x4) {
return _ref.apply(this, arguments);
return function getAllAnnotationsFromCollection(_x5) {
return _ref2.apply(this, arguments);
};

@@ -257,0 +275,0 @@ }();

@@ -27,4 +27,4 @@ 'use strict';

var getAllAnnotationsFromCollection = exports.getAllAnnotationsFromCollection = function () {
var _ref = _asyncGenerator3.default.wrap( /*#__PURE__*/_regenerator2.default.mark(function _callee(collectionResource) {
var firstPage, _iterator, _isArray, _i, _ref2, item, collection, _item;
var _ref2 = _asyncGenerator3.default.wrap( /*#__PURE__*/_regenerator2.default.mark(function _callee(collectionResource) {
var firstPage, _iterator, _isArray, _i, _ref3, item, collection, _item;

@@ -61,3 +61,3 @@ return _regenerator2.default.wrap(function _callee$(_context) {

case 7:
_ref2 = _iterator[_i++];
_ref3 = _iterator[_i++];
_context.next = 14;

@@ -77,6 +77,6 @@ break;

case 13:
_ref2 = _i.value;
_ref3 = _i.value;
case 14:
item = _ref2;
item = _ref3;
_context.next = 17;

@@ -129,4 +129,4 @@ return item;

return function getAllAnnotationsFromCollection(_x4) {
return _ref.apply(this, arguments);
return function getAllAnnotationsFromCollection(_x5) {
return _ref2.apply(this, arguments);
};

@@ -136,4 +136,4 @@ }();

var fetchPageCollection = function () {
var _ref3 = _asyncGenerator3.default.wrap( /*#__PURE__*/_regenerator2.default.mark(function _callee2(resource) {
var currentPage, _iterator2, _isArray2, _i2, _ref4, item;
var _ref4 = _asyncGenerator3.default.wrap( /*#__PURE__*/_regenerator2.default.mark(function _callee2(resource) {
var currentPage, _iterator2, _isArray2, _i2, _ref5, item;

@@ -171,3 +171,3 @@ return _regenerator2.default.wrap(function _callee2$(_context2) {

case 8:
_ref4 = _iterator2[_i2++];
_ref5 = _iterator2[_i2++];
_context2.next = 15;

@@ -187,6 +187,6 @@ break;

case 14:
_ref4 = _i2.value;
_ref5 = _i2.value;
case 15:
item = _ref4;
item = _ref5;
_context2.next = 18;

@@ -215,4 +215,4 @@ return item;

return function fetchPageCollection(_x5) {
return _ref3.apply(this, arguments);
return function fetchPageCollection(_x6) {
return _ref4.apply(this, arguments);
};

@@ -252,2 +252,5 @@ }();

var _ref = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {},
withoutCredentials = _ref.withoutCredentials;
return fetch(uri, {

@@ -257,3 +260,3 @@ method: method,

body: JSON.stringify(body),
credentials: process.env.NODE_ENV === 'production' ? 'include' : null,
credentials: withoutCredentials ? null : process.env.NODE_ENV === 'production' ? 'include' : null,
cache: process.env.NODE_ENV === 'production' ? 'default' : 'force-cache',

@@ -273,3 +276,8 @@ redirect: 'follow'

function get(uri, body) {
return makeRequest('GET', uri, body);
try {
return makeRequest('GET', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('GET', uri, body, { withoutCredentials: true });
}
}

@@ -280,3 +288,8 @@

return makeRequest('POST', uri, body, headers);
try {
return makeRequest('POST', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('POST', uri, body, { withoutCredentials: true });
}
}

@@ -287,3 +300,8 @@

return makeRequest('PUT', uri, body, headers);
try {
return makeRequest('PUT', uri, body);
} catch (e) {
console.warn('Request failed, trying again without credentials', e);
return makeRequest('PUT', uri, body, { withoutCredentials: true });
}
}

@@ -290,0 +308,0 @@

{
"name": "@annotation-studio/redux",
"version": "1.0.0-pr.7f188d19",
"version": "1.0.0-pr.84b2ae73",
"description": "Describe annotation-redux here",

@@ -38,3 +38,3 @@ "main": "lib/index.js",

"devDependencies": {
"@fesk/test-environment": "^1.0.0-pr.7f188d19",
"@fesk/test-environment": "^1.0.0-pr.84b2ae73",
"babel-jest": "^20.0.3",

@@ -48,3 +48,3 @@ "babel-plugin-transform-async-to-generator": "^6.24.1",

"nwb": "^0.21.5",
"nwb-watch": "^1.0.0-pr.7f188d19",
"nwb-watch": "^1.0.0-pr.84b2ae73",
"react-intl": "^2.2.2",

@@ -51,0 +51,0 @@ "react-intl-redux": "^0.7.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