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

@internetarchive/bookreader

Package Overview
Dependencies
Maintainers
13
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@internetarchive/bookreader - npm Package Compare versions

Comparing version 4.33.0 to 4.34.0-item-nav

src/BookNavigator/book-loader.js

2

CHANGELOG.md

@@ -0,1 +1,3 @@

# 4.34.0
Fix: exist fullscreen will change to 2up if 2up is available @iisa
# 4.33.0

@@ -2,0 +4,0 @@ Fix: use optional `srcSet` in 1up mode @iisa

23

package.json
{
"name": "@internetarchive/bookreader",
"version": "4.33.0",
"version": "4.34.0-item-nav",
"description": "The Internet Archive BookReader.",

@@ -25,3 +25,2 @@ "repository": {

"homepage": "https://github.com/internetarchive/bookreader#readme",
"dependencies": {},
"private": false,

@@ -31,2 +30,13 @@ "devDependencies": {

"@babel/preset-env": "7.12.7",
"@internetarchive/ia-activity-indicator": "0.0.1",
"@internetarchive/ia-icons": "1.2.2",
"@internetarchive/ia-menu-slider": "0.1.10",
"@internetarchive/ia-sharing-options": "0.1.2",
"@internetarchive/icon-bookmark": "1.1.3",
"@internetarchive/icon-collapse-sidebar": "1.1.0",
"@internetarchive/icon-edit-pencil": "1.1.5",
"@internetarchive/icon-magnify-minus": "1.2.3",
"@internetarchive/icon-magnify-plus": "1.2.3",
"@internetarchive/icon-search": "1.2.3",
"@internetarchive/modal-manager": "0.1.0",
"@types/jest": "26.0.19",

@@ -39,3 +49,3 @@ "babel-loader": "8.2.2",

"eslint": "7.16.0",
"eslint-plugin-testcafe": "^0.2.1",
"eslint-plugin-testcafe": "0.2.1",
"http-server": "0.12.3",

@@ -50,2 +60,4 @@ "iso-language-codes": "1.0.7",

"jquery.mmenu": "5.6.5",
"lit-element": "2.4.0",
"lit-html": "1.3.0",
"live-server": "1.2.1",

@@ -56,2 +68,3 @@ "node-fetch": "2.6.1",

"sinon": "9.2.2",
"soundmanager2": "2.97.20170602",
"svgo": "1.3.2",

@@ -81,3 +94,3 @@ "testcafe": "1.9.3",

"build-assets:watch": "npx cpx --watch --verbose \"src/assets/**/*\" BookReader",
"build-js": "npx webpack && node scripts/copy-modules.js",
"build-js": "npx webpack",
"build-js:watch": "npx webpack --mode=development --watch",

@@ -98,2 +111,2 @@ "build-css": "npx sass --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css",

}
}
}
// @ts-check
// effect.js gives acces to extra easing function (e.g. easeInSine)
import 'jquery-ui/ui/effect.js';
import '../dragscrollable-br.js';
import { clamp } from './utils.js';

@@ -3,0 +6,0 @@ import { EVENTS } from './events.js';

/** @typedef {import("../../BookReader.js").default} BookReader */
import 'jquery-ui/ui/widget.js';
import 'jquery-ui/ui/widgets/mouse.js';
import 'jquery-ui/ui/widgets/slider.js';
import { EVENTS } from '../events.js';

@@ -4,0 +7,0 @@

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

import 'jquery-colorbox';
import { escapeHTML } from '../utils.js';

@@ -2,0 +3,0 @@ import { EVENTS } from '../events.js';

/* global BookReader */
/**
* Adds mobile navigation at responsive breakpoint
* NOTE additional script and style tags must be included.
*
* <script src="../BookReader/mmenu/dist/js/jquery.mmenu.min.js"></script>
* <script src="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.min.js"></script>
* <link rel="stylesheet" href="../BookReader/mmenu/dist/css/jquery.mmenu.css" />
* <link rel="stylesheet" href="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.css" />
*/
import * as utils from '../BookReader/utils.js';
import 'jquery.mmenu/dist/js/jquery.mmenu.min.js';
import 'jquery.mmenu/dist/addons/navbars/jquery.mmenu.navbars.min.js';

@@ -14,0 +10,0 @@ //contains all filters and labels for checkboxs

@@ -1,4 +0,6 @@

/* global soundManager */
import AbstractTTSEngine from './AbstractTTSEngine.js';
import { sleep } from './utils.js';
/* global soundManager */
import 'soundmanager2';
import 'jquery.browser';

@@ -5,0 +7,0 @@ /** @typedef {import("./AbstractTTSEngine.js").TTSEngineOptions} TTSEngineOptions */

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

/* global BookReader, soundManager */
/* global BookReader */
/**

@@ -313,7 +313,7 @@ * Plugin for Text to Speech in BookReader

if (soundManager.debugMode) console.log('leafTop = ' + leafTop + ' topOfFirstChunk = ' + topOfFirstChunk + ' botOfLastChunk = ' + botOfLastChunk);
if (window?.soundManager?.debugMode) console.log('leafTop = ' + leafTop + ' topOfFirstChunk = ' + topOfFirstChunk + ' botOfLastChunk = ' + botOfLastChunk);
const containerTop = this.refs.$brContainer.prop('scrollTop');
const containerBot = containerTop + this.refs.$brContainer.height();
if (soundManager.debugMode) console.log('containerTop = ' + containerTop + ' containerBot = ' + containerBot);
if (window?.soundManager?.debugMode) console.log('containerTop = ' + containerTop + ' containerBot = ' + containerBot);

@@ -320,0 +320,0 @@ if ((topOfFirstChunk < containerTop) || (botOfLastChunk > containerBot)) {

@@ -1,5 +0,1 @@

import '../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import sinon from 'sinon';

@@ -1,5 +0,1 @@

import '../../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';
import sinon from 'sinon';

@@ -6,0 +2,0 @@ import { getNavPageNumHtml } from '../../../src/js/BookReader/Navbar/Navbar.js';

@@ -1,5 +0,1 @@

import '../../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../src/js/BookReader.js';

import sinon from 'sinon';
import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';
import 'jquery.mmenu/dist/js/jquery.mmenu.min.umd.js';
import 'jquery.mmenu/src/addons/navbars/jquery.mmenu.navbars.js';
import BookReader from '../../src/js/BookReader.js';

@@ -11,0 +4,0 @@ import '../../src/js/plugins/plugin.mobile_nav.js';

@@ -1,7 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';
import 'jquery.mmenu/dist/js/jquery.mmenu.min.umd.js';
import 'jquery.mmenu/src/addons/navbars/jquery.mmenu.navbars.js';

@@ -8,0 +2,0 @@ import BookReader from '../../src/js/BookReader.js';

@@ -1,6 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';
import BookReader from '../../src/js/BookReader.js';

@@ -7,0 +2,0 @@ import '../../src/js/plugins/plugin.resume.js';

import sinon from 'sinon';
import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -7,0 +3,0 @@ import '../../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../../src/js/BookReader.js';

@@ -1,5 +0,1 @@

import '../../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../../src/js/dragscrollable-br.js';
import 'jquery-colorbox';

@@ -6,0 +2,0 @@ import BookReader from '../../../src/js/BookReader.js';

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

import 'jquery.browser';
import FestivalTTSEngine from '../../../src/js/plugins/tts/FestivalTTSEngine.js';

@@ -3,0 +2,0 @@ import sinon from 'sinon';

@@ -42,9 +42,8 @@ // @ts-check

'plugins/plugin.iframe.js': { import: './src/js/plugins/plugin.iframe.js', dependOn: 'BookReader.js' },
'plugins/plugin.item_nav.js': { import: './src/js/plugins/plugin.item_nav.js', dependOn: 'BookReader.js' },
'plugins/plugin.menu_toggle.js': { import: './src/js/plugins/menu_toggle/plugin.menu_toggle.js', dependOn: 'BookReader.js' },
'plugins/plugin.mobile_nav.js': { import: './src/js/plugins/plugin.mobile_nav.js', dependOn: 'BookReader.js' },
'plugins/plugin.print.js': { import: './src/js/plugins/plugin.print.js', dependOn: 'BookReader.js' },
'plugins/plugin.resume.js': { import: './src/js/plugins/plugin.resume.js', dependOn: 'BookReader.js' },
'plugins/plugin.search.js': { import: './src/js/plugins/search/plugin.search.js', dependOn: 'BookReader.js' },
'plugins/plugin.text_selection.js': { import: './src/js/plugins/plugin.text_selection.js', dependOn: 'BookReader.js' },
'plugins/plugin.themes.js': { import: './src/js/plugins/plugin.themes.js', dependOn: 'BookReader.js' },
'plugins/plugin.tts.js': { import: './src/js/plugins/tts/plugin.tts.js', dependOn: 'BookReader.js' },

@@ -88,30 +87,2 @@ 'plugins/plugin.url.js': { import: './src/js/plugins/plugin.url.js', dependOn: 'BookReader.js' },

},
// jQuery plugins/extensions
// All of these will be replaced with just imports in v5
{
...shared,
// Output file -> srcfile
entry: {
'jquery-ui-1.12.0.min.js': { import: './src/js/jquery-ui-wrapper.js' },
'jquery.browser.min.js': { import: 'jquery.browser' },
'jquery.colorbox-min.js': { import: 'jquery-colorbox' },
'jquery.ui.touch-punch.min.js': { import: 'jquery-ui-touch-punch' },
'dragscrollable-br.js': { import: './src/js/dragscrollable-br.js' },
},
externals: {
// Anytime 'jquery' is imported, use the runtime-global jQuery
// instead of bundling a copy of jquery at compile-time.
jquery: 'jQuery',
},
plugins: [
new webpack.ProvidePlugin({
// Make $ and jQuery available without importing
$: 'jquery',
jQuery: 'jquery',
})
],
},
];

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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