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

@oracle/offline-persistence-toolkit

Package Overview
Dependencies
Maintainers
10
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oracle/offline-persistence-toolkit - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

dist/debug/offline-persistence-toolkit-core-1.1.2.js

10

dist/debug/bundles-config.js

@@ -5,3 +5,3 @@ (function(){

{
'opt/offline-persistence-toolkit-core-1.1.1': [
'opt/offline-persistence-toolkit-core-1.1.2': [
'persistenceUtils',

@@ -18,3 +18,3 @@ 'impl/logger',

],
'opt/offline-persistence-toolkit-pouchdbstore-1.1.1': [
'opt/offline-persistence-toolkit-pouchdbstore-1.1.2': [
'PersistenceStore',

@@ -27,3 +27,3 @@ 'impl/storageUtils',

],
'opt/offline-persistence-toolkit-localstore-1.1.1': [
'opt/offline-persistence-toolkit-localstore-1.1.2': [
'PersistenceStore',

@@ -36,3 +36,3 @@ 'impl/storageUtils',

],
'opt/offline-persistence-toolkit-filesystemstore-1.1.1': [
'opt/offline-persistence-toolkit-filesystemstore-1.1.2': [
'impl/storageUtils',

@@ -43,3 +43,3 @@ 'impl/keyValuePersistenceStore',

],
'opt/offline-persistence-toolkit-responseproxy-1.1.1': [
'opt/offline-persistence-toolkit-responseproxy-1.1.2': [
'fetchStrategies',

@@ -46,0 +46,0 @@ 'cacheStrategies',

@@ -68,3 +68,3 @@ /**

localVars.resolvedResponse = resolvedResponse;
return persistenceManager.getCache().hasMatch(request, {ignoreSearch: true});
return persistenceManager.getCache().hasMatch(request);
}).then(function (matchExist) {

@@ -143,3 +143,3 @@ var responseClone = localVars.resolvedResponse.clone();

function _checkCacheForMatch(request) {
return persistenceManager.getCache().match(request, {ignoreSearch: true});
return persistenceManager.getCache().match(request);
};

@@ -146,0 +146,0 @@

@@ -1,2 +0,2 @@

!function(){requirejs.config({bundles:{"opt/offline-persistence-toolkit-core-1.1.1":["persistenceUtils","impl/logger","impl/PersistenceXMLHttpRequest","persistenceStoreManager","impl/defaultCacheHandler","impl/PersistenceSyncManager","impl/OfflineCache","impl/offlineCacheManager","impl/fetch","persistenceManager"],"opt/offline-persistence-toolkit-pouchdbstore-1.1.1":["PersistenceStore","impl/storageUtils","pouchdb-browser-6.3.4","impl/pouchDBPersistenceStore","pouchDBPersistenceStoreFactory","persistenceStoreFactory"],"opt/offline-persistence-toolkit-localstore-1.1.1":["PersistenceStore","impl/storageUtils","impl/keyValuePersistenceStore","impl/localPersistenceStore","localPersistenceStoreFactory","persistenceStoreFactory"],"opt/offline-persistence-toolkit-filesystemstore-1.1.1":["impl/storageUtils","impl/keyValuePersistenceStore","impl/fileSystemPersistenceStore","fileSystemPersistenceStoreFactory"],"opt/offline-persistence-toolkit-responseproxy-1.1.1":["fetchStrategies","cacheStrategies","defaultResponseProxy","simpleJsonShredding","oracleRestJsonShredding","simpleBinaryDataShredding","queryHandlers"]}})}();
!function(){requirejs.config({bundles:{"opt/offline-persistence-toolkit-core-1.1.2":["persistenceUtils","impl/logger","impl/PersistenceXMLHttpRequest","persistenceStoreManager","impl/defaultCacheHandler","impl/PersistenceSyncManager","impl/OfflineCache","impl/offlineCacheManager","impl/fetch","persistenceManager"],"opt/offline-persistence-toolkit-pouchdbstore-1.1.2":["PersistenceStore","impl/storageUtils","pouchdb-browser-6.3.4","impl/pouchDBPersistenceStore","pouchDBPersistenceStoreFactory","persistenceStoreFactory"],"opt/offline-persistence-toolkit-localstore-1.1.2":["PersistenceStore","impl/storageUtils","impl/keyValuePersistenceStore","impl/localPersistenceStore","localPersistenceStoreFactory","persistenceStoreFactory"],"opt/offline-persistence-toolkit-filesystemstore-1.1.2":["impl/storageUtils","impl/keyValuePersistenceStore","impl/fileSystemPersistenceStore","fileSystemPersistenceStoreFactory"],"opt/offline-persistence-toolkit-responseproxy-1.1.2":["fetchStrategies","cacheStrategies","defaultResponseProxy","simpleJsonShredding","oracleRestJsonShredding","simpleBinaryDataShredding","queryHandlers"]}})}();
//# sourceMappingURL=bundles-config.js.map

@@ -1,2 +0,2 @@

define(["./persistenceManager","./persistenceUtils","./impl/defaultCacheHandler","./impl/logger"],function(a,b,c,d){"use strict";function e(e){e=e||{};var f=e.serverResponseCallback,g=e.backgroundFetch,h="disabled"==g;return h&&(f=null),f||h||(f=function(a,b){return Promise.resolve(b)}),function(e,g){if(d.log("Offline Persistence Toolkit fetchStrategies: Processing CacheFirstStrategy"),f)var h=function(d,e){var h=b.buildEndpointKey(d);c.registerEndpointOptions(h,g);var i={};return b._cloneResponse(e,{url:d.url}).then(function(a){return f(d,a)}).then(function(b){return i.resolvedResponse=b,a.getCache().hasMatch(d,{ignoreSearch:!0})}).then(function(c){var e=i.resolvedResponse.clone();return c?null==i.resolvedResponse||b.isCachedResponse(i.resolvedResponse)||"GET"!=d.method&&"HEAD"!=d.method?e:a.getCache().put(d,i.resolvedResponse).then(function(){return e}):e}).then(function(a){return c.unregisterEndpointOptions(h),Promise.resolve(a)})};return i(e,g,h)}}function f(){return function(c,e){return d.log("Offline Persistence Toolkit fetchStrategies: Processing CacheIfOfflineStrategy"),a.isOnline()?a.browserFetch(c).then(function(a){return a.ok?b._cloneResponse(a,{url:c.url}):g(c,a,e)},function(a){return d.log(a),i(c,e)}):i(c,e)}}function g(a,b,c){return b.status<500?(d.log("Offline Persistence Toolkit fetchStrategies: Response is not ok"),Promise.resolve(b)):i(a,c)}function h(b){return a.getCache().match(b,{ignoreSearch:!0})}function i(b,c,e){return new Promise(function(f,g){d.log("Offline Persistence Toolkit fetchStrategies: Process queryParams for Request"),k(b,c).then(function(c){c?(f(c.clone()),j(b,e)):(d.log("Offline Persistence Toolkit fetchStrategies: Response for queryParams is not null"),h(b).then(function(c){c?(d.log("Offline Persistence Toolkit fetchStrategies: Cached Response is not null"),f(c),j(b,e)):(d.log("Offline Persistence Toolkit fetchStrategies: Cached Response is null"),a.browserFetch(b).then(function(a){var c=a.clone();f(c),e&&e(b,a)},function(a){var b={status:503,statusText:"No cached response exists"};f(new Response(null,b))}))}))})})}function j(c,e){e&&(d.log("Offline Persistence Toolkit fetchStrategies: Fetch for ServerResponseCallback"),a.browserFetch(c).then(function(a){b._cloneResponse(a,{url:c.url}).then(function(a){e(c,a)})}))}function k(a,b){var c=l(b);return null==c?Promise.resolve():c(a,b)}function l(a){var b=null;return null!=a.queryHandler&&(b=a.queryHandler),b}return{getCacheFirstStrategy:e,getCacheIfOfflineStrategy:f}});
define(["./persistenceManager","./persistenceUtils","./impl/defaultCacheHandler","./impl/logger"],function(a,b,c,d){"use strict";function e(e){e=e||{};var f=e.serverResponseCallback,g=e.backgroundFetch,h="disabled"==g;return h&&(f=null),f||h||(f=function(a,b){return Promise.resolve(b)}),function(e,g){if(d.log("Offline Persistence Toolkit fetchStrategies: Processing CacheFirstStrategy"),f)var h=function(d,e){var h=b.buildEndpointKey(d);c.registerEndpointOptions(h,g);var i={};return b._cloneResponse(e,{url:d.url}).then(function(a){return f(d,a)}).then(function(b){return i.resolvedResponse=b,a.getCache().hasMatch(d)}).then(function(c){var e=i.resolvedResponse.clone();return c?null==i.resolvedResponse||b.isCachedResponse(i.resolvedResponse)||"GET"!=d.method&&"HEAD"!=d.method?e:a.getCache().put(d,i.resolvedResponse).then(function(){return e}):e}).then(function(a){return c.unregisterEndpointOptions(h),Promise.resolve(a)})};return i(e,g,h)}}function f(){return function(c,e){return d.log("Offline Persistence Toolkit fetchStrategies: Processing CacheIfOfflineStrategy"),a.isOnline()?a.browserFetch(c).then(function(a){return a.ok?b._cloneResponse(a,{url:c.url}):g(c,a,e)},function(a){return d.log(a),i(c,e)}):i(c,e)}}function g(a,b,c){return b.status<500?(d.log("Offline Persistence Toolkit fetchStrategies: Response is not ok"),Promise.resolve(b)):i(a,c)}function h(b){return a.getCache().match(b)}function i(b,c,e){return new Promise(function(f,g){d.log("Offline Persistence Toolkit fetchStrategies: Process queryParams for Request"),k(b,c).then(function(c){c?(f(c.clone()),j(b,e)):(d.log("Offline Persistence Toolkit fetchStrategies: Response for queryParams is not null"),h(b).then(function(c){c?(d.log("Offline Persistence Toolkit fetchStrategies: Cached Response is not null"),f(c),j(b,e)):(d.log("Offline Persistence Toolkit fetchStrategies: Cached Response is null"),a.browserFetch(b).then(function(a){var c=a.clone();f(c),e&&e(b,a)},function(a){var b={status:503,statusText:"No cached response exists"};f(new Response(null,b))}))}))})})}function j(c,e){e&&(d.log("Offline Persistence Toolkit fetchStrategies: Fetch for ServerResponseCallback"),a.browserFetch(c).then(function(a){b._cloneResponse(a,{url:c.url}).then(function(a){e(c,a)})}))}function k(a,b){var c=l(b);return null==c?Promise.resolve():c(a,b)}function l(a){var b=null;return null!=a.queryHandler&&(b=a.queryHandler),b}return{getCacheFirstStrategy:e,getCacheIfOfflineStrategy:f}});
//# sourceMappingURL=fetchStrategies.js.map
{
"name": "@oracle/offline-persistence-toolkit",
"title": "Offline Persistence Toolkit",
"version": "1.1.1",
"version": "1.1.2",
"description": "Offline Persistence Toolkit by Oracle Corp.",

@@ -6,0 +6,0 @@ "author": "oraclejet",

@@ -1,2 +0,2 @@

# offline-persistence-toolkit 1.1.1 #
# offline-persistence-toolkit 1.1.2 #

@@ -61,3 +61,3 @@ offline-persistence-toolkit is a client-side JavaScript library that provides caching and offline support at the HTTP request layer. This support is transparent to the user and is done through the Fetch API and an XHR adapter. HTTP requests made while the client device is offline are captured for replay when connection to the server is restored. Additional capabilities include a persistent storage layer, synchronization manager, binary data support and various configuration APIs for customizing the default behavior. This framework can be used in both ServiceWorker and non-ServiceWorker contexts within web and hybrid mobile apps.

paths: {
'persist' : 'js/libs/persist/v1.1.1/min'
'persist' : 'js/libs/persist/v1.1.2/min'

@@ -67,7 +67,7 @@ // Other path mappings here

```
For Oracle JET apps, also open `appDir/src/js/main-release-paths.json` and add the `'persist' : 'js/libs/persist/v1.1.1/min'` entry to the list of paths.
For Oracle JET apps, also open `appDir/src/js/main-release-paths.json` and add the `'persist' : 'js/libs/persist/v1.1.2/min'` entry to the list of paths.
You can choose the name of the paths prefix. That is, you can use a different value to the ‘persist’ value shown in the examples.
It is recommended to add the version number as a convention in your application build step such as `'persist' : 'js/libs/persist/v1.1.1/min'`.
It is recommended to add the version number as a convention in your application build step such as `'persist' : 'js/libs/persist/v1.1.2/min'`.

@@ -88,3 +88,3 @@ The toolkit makes heavy use of the [Promise API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise "Promise API"). If you are targeting environments that do not support the Promise API, you will need to polyfill this feature. We recommend the [es6-promise polyfill](https://github.com/stefanpenner/es6-promise "es6-promise polyfill").

'pouchfind': 'js/libs/pouchdb.find',
'persist' : 'js/libs/persist/v1.1.1/min'
'persist' : 'js/libs/persist/v1.1.2/min'

@@ -91,0 +91,0 @@ // Other path mappings here

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