@financial-times/dotcom-ui-polyfill-service 7.2.7 → 7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node/index.d.ts +1 -0
- package/dist/node/polyfillServiceURLs.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1990 -0
- package/package.json +6 -4
- package/src/index.ts +0 -1
- package/src/polyfillServiceURLs.ts +0 -103
package/package.json
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@financial-times/dotcom-ui-polyfill-service",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.3.1",
|
4
4
|
"description": "",
|
5
5
|
"main": "server.js",
|
6
6
|
"browser": "browser.js",
|
7
7
|
"types": "src/index.ts",
|
8
8
|
"scripts": {
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1",
|
10
|
-
"tsc": "../../node_modules/.bin/tsc --incremental",
|
11
10
|
"clean": "npm run clean:dist && npm run clean:node_modules",
|
12
11
|
"clean:dist": "rm -rf dist",
|
13
12
|
"clean:node_modules": "rm -rf node_modules",
|
14
13
|
"clean:install": "npm run clean && npm i",
|
15
|
-
"build:node": "
|
14
|
+
"build:node": "tsc",
|
16
15
|
"build": "npm run build:node",
|
17
16
|
"dev": "npm run build:node -- --watch",
|
18
17
|
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
|
@@ -24,6 +23,9 @@
|
|
24
23
|
"node": ">= 14.0.0",
|
25
24
|
"npm": "7.x || 8.x"
|
26
25
|
},
|
26
|
+
"files": [
|
27
|
+
"dist/"
|
28
|
+
],
|
27
29
|
"repository": {
|
28
30
|
"type": "git",
|
29
31
|
"repository": "https://github.com/Financial-Times/dotcom-page-kit.git",
|
@@ -36,4 +38,4 @@
|
|
36
38
|
"devDependencies": {
|
37
39
|
"check-engine": "^1.10.1"
|
38
40
|
}
|
39
|
-
}
|
41
|
+
}
|
package/src/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './polyfillServiceURLs'
|
@@ -1,103 +0,0 @@
|
|
1
|
-
import querystring from 'querystring'
|
2
|
-
|
3
|
-
// Please see https://polyfill.io/v3/url-builder/ for information about which
|
4
|
-
// features are available and how they may be used.
|
5
|
-
|
6
|
-
const polyfillsCore = ['HTMLPictureElement']
|
7
|
-
|
8
|
-
const polyfillsEnhanced = [
|
9
|
-
// What Andrew Betts decided is "default":
|
10
|
-
/*
|
11
|
-
Array.from
|
12
|
-
Array.isArray
|
13
|
-
Array.of
|
14
|
-
Array.prototype.every
|
15
|
-
Array.prototype.fill
|
16
|
-
Array.prototype.filter
|
17
|
-
Array.prototype.forEach
|
18
|
-
Array.prototype.indexOf
|
19
|
-
Array.prototype.lastIndexOf
|
20
|
-
Array.prototype.map
|
21
|
-
Array.prototype.reduce
|
22
|
-
Array.prototype.reduceRight
|
23
|
-
Array.prototype.some
|
24
|
-
CustomEvent
|
25
|
-
DOMTokenList
|
26
|
-
Date.now
|
27
|
-
Date.prototype.toISOString
|
28
|
-
DocumentFragment.prototype.append
|
29
|
-
DocumentFragment.prototype.prepend
|
30
|
-
Element.prototype.after
|
31
|
-
Element.prototype.append
|
32
|
-
Element.prototype.before
|
33
|
-
Element.prototype.classList
|
34
|
-
Element.prototype.cloneNode
|
35
|
-
Element.prototype.closest
|
36
|
-
Element.prototype.matches
|
37
|
-
Element.prototype.prepend
|
38
|
-
Element.prototype.remove
|
39
|
-
Element.prototype.replaceWith
|
40
|
-
Element
|
41
|
-
Event.focusin
|
42
|
-
Event.hashchange
|
43
|
-
Event
|
44
|
-
Function.prototype.bind
|
45
|
-
JSON
|
46
|
-
Map
|
47
|
-
Node.prototype.contains
|
48
|
-
Number.isNaN
|
49
|
-
Object.assign
|
50
|
-
Object.create
|
51
|
-
Object.defineProperties
|
52
|
-
Object.defineProperty
|
53
|
-
Object.getOwnPropertyDescriptor
|
54
|
-
Object.getOwnPropertyNames
|
55
|
-
Object.getPrototypeOf
|
56
|
-
Object.keys
|
57
|
-
Promise
|
58
|
-
Set
|
59
|
-
String.prototype.endsWith
|
60
|
-
String.prototype.includes
|
61
|
-
String.prototype.startsWith
|
62
|
-
String.prototype.trim
|
63
|
-
URL
|
64
|
-
Window
|
65
|
-
XMLHttpRequest
|
66
|
-
atob
|
67
|
-
document.querySelector
|
68
|
-
document.visibilityState
|
69
|
-
document
|
70
|
-
location.origin
|
71
|
-
requestAnimationFrame
|
72
|
-
~html5-elements
|
73
|
-
*/
|
74
|
-
'default',
|
75
|
-
|
76
|
-
// ECMAScript presets
|
77
|
-
'es5',
|
78
|
-
'es2015',
|
79
|
-
'es2016',
|
80
|
-
'es2017',
|
81
|
-
|
82
|
-
// Web browser features
|
83
|
-
'EventSource',
|
84
|
-
'fetch',
|
85
|
-
'HTMLPictureElement',
|
86
|
-
'IntersectionObserver',
|
87
|
-
'NodeList.prototype.forEach'
|
88
|
-
]
|
89
|
-
|
90
|
-
export const core = () => {
|
91
|
-
return formatURL(polyfillsCore)
|
92
|
-
}
|
93
|
-
|
94
|
-
export const enhanced = () => {
|
95
|
-
return formatURL(polyfillsEnhanced)
|
96
|
-
}
|
97
|
-
|
98
|
-
function formatURL(features: string[]): string {
|
99
|
-
const serviceURL = 'https://polyfill.io/v3/polyfill.min.js'
|
100
|
-
const queryString = querystring.stringify({ features: features.join(','), source: 'next' })
|
101
|
-
|
102
|
-
return `${serviceURL}?${queryString}`
|
103
|
-
}
|