Skip to content

Commit

Permalink
deps: bump versions using scripts/dev/www-lib-update (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyiq committed May 14, 2021
1 parent 9f9eecf commit 9ab6201
Show file tree
Hide file tree
Showing 11 changed files with 1,257 additions and 498 deletions.
2 changes: 1 addition & 1 deletion scripts/dev/www-lib-update/package.json
Expand Up @@ -17,7 +17,7 @@
"reset": "^0.1.0",
"streamsaver": "^2.0.4",
"web-streams-polyfill": "^2.1.1",
"webcrypto-shim": "^0.1.6",
"webcrypto-shim": "^0.1.7",
"xregexp": "^4.3.0"
}
}
6 changes: 3 additions & 3 deletions www/lib/chart.js/Chart.bundle.min.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions www/lib/chart.js/LICENSE.md
@@ -1,9 +1,9 @@
The MIT License (MIT)

Copyright (c) 2018 Chart.js Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The MIT License (MIT)

Copyright (c) 2018 Chart.js Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion www/lib/jquery/LICENSE.txt
@@ -1,4 +1,4 @@
Copyright JS Foundation and other contributors, https://js.foundation/
Copyright OpenJS Foundation and other contributors, https://openjsf.org/

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
4 changes: 2 additions & 2 deletions www/lib/jquery/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/lib/jquery/jquery.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/lib/promise-polyfill/polyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 20 additions & 10 deletions www/lib/streamsaver/StreamSaver.js
Expand Up @@ -9,22 +9,25 @@
})('streamSaver', () => {
'use strict'

const global = typeof window === 'object' ? window : this
if (!global.HTMLElement) console.warn('streamsaver is meant to run on browsers main thread')

let mitmTransporter = null
let supportsTransferable = false
const test = fn => { try { fn() } catch (e) {} }
const ponyfill = window.WebStreamsPolyfill || {}
const isSecureContext = window.isSecureContext
const ponyfill = global.WebStreamsPolyfill || {}
const isSecureContext = global.isSecureContext
// TODO: Must come up with a real detection test (#69)
let useBlobFallback = /constructor/i.test(window.HTMLElement) || !!window.safari || !!window.WebKitPoint
let useBlobFallback = /constructor/i.test(global.HTMLElement) || !!global.safari || !!global.WebKitPoint
const downloadStrategy = isSecureContext || 'MozAppearance' in document.documentElement.style
? 'iframe'
: 'navigate'

const streamSaver = {
createWriteStream,
WritableStream: window.WritableStream || ponyfill.WritableStream,
WritableStream: global.WritableStream || ponyfill.WritableStream,
supported: true,
version: { full: '2.0.0', major: 2, minor: 0, dot: 0 },
version: { full: '2.0.5', major: 2, minor: 0, dot: 5 },
mitm: 'https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0'
}

Expand Down Expand Up @@ -61,7 +64,7 @@
const options = 'width=200,height=100'
const delegate = document.createDocumentFragment()
const popup = {
frame: window.open(src, 'popup', options),
frame: global.open(src, 'popup', options),
loaded: false,
isIframe: false,
isPopup: true,
Expand All @@ -75,12 +78,12 @@
const onReady = evt => {
if (evt.source === popup.frame) {
popup.loaded = true
window.removeEventListener('message', onReady)
global.removeEventListener('message', onReady)
popup.dispatchEvent(new Event('load'))
}
}

window.addEventListener('message', onReady)
global.addEventListener('message', onReady)

return popup
}
Expand Down Expand Up @@ -123,7 +126,7 @@
* @param {string} filename filename that should be used
* @param {object} options [description]
* @param {number} size depricated
* @return {WritableStream}
* @return {WritableStream<Uint8Array>}
*/
function createWriteStream (filename, options, size) {
let opts = {
Expand Down Expand Up @@ -155,7 +158,7 @@
loadTransporter()

channel = new MessageChannel()

// Make filename RFC5987 compatible
filename = encodeURIComponent(filename.replace(/\//g, ':'))
.replace(/['()]/g, escape)
Expand All @@ -180,6 +183,9 @@
const transformer = downloadStrategy === 'iframe' ? undefined : {
// This transformer & flush method is only used by insecure context.
transform (chunk, controller) {
if (!(chunk instanceof Uint8Array)) {
throw new TypeError('Can only wirte Uint8Arrays')
}
bytesWritten += chunk.length
controller.enqueue(chunk)

Expand Down Expand Up @@ -219,6 +225,7 @@
} else {
if (mitmTransporter.isPopup) {
mitmTransporter.remove()
mitmTransporter = null
// Special case for firefox, they can keep sw alive with fetch
if (downloadStrategy === 'iframe') {
makeIframe(streamSaver.mitm)
Expand All @@ -244,6 +251,9 @@

return (!useBlobFallback && ts && ts.writable) || new streamSaver.WritableStream({
write (chunk) {
if (!(chunk instanceof Uint8Array)) {
throw new TypeError('Can only wirte Uint8Arrays')
}
if (useBlobFallback) {
// Safari... The new IE6
// https://github.com/jimmywarting/StreamSaver.js/issues/69
Expand Down

0 comments on commit 9ab6201

Please sign in to comment.