Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 47 additions & 1 deletion package-lock.json

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

44 changes: 44 additions & 0 deletions polyfills/Intl/DurationFormat/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
dependencies = [
"Array.from",
"Array.prototype.find",
"Intl.getCanonicalLocales",
"Intl.ListFormat",
"Intl.Locale",
"Intl.NumberFormat",
"Intl.PluralRules",
"Number.isInteger",
"Object.assign",
"Object.keys",
"Object.setPrototypeOf",
"WeakMap",
]
docs = "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat"
license = "MIT"
notes = [
"Locales must be specified separately by prefixing the locale name with `Intl.DurationFormat.~locale`, eg `Intl.DurationFormat.~locale.en-GB`.",
]
repo = "https://github.com/formatjs/formatjs/tree/master/packages/intl-durationformat/polyfill.js"
spec = "https://tc39.es/proposal-intl-duration-format/#sec-intl-durationformat-constructor"

[browsers]
android = "*"
chrome = "<129"
edge = "*"
edge_mob = "*"
firefox = "*"
firefox_mob = "*"
ie = "*"
ie_mob = "*"
opera = "<115"
op_mob = "*"
safari = "<16.4"
ios_saf = "<16.4"
samsung_mob = "*"

[install]
module = "@formatjs/intl-durationformat"
postinstall = "update.task.js"
clean = [
"~locale",
"polyfill.js",
]
1 change: 1 addition & 0 deletions polyfills/Intl/DurationFormat/detect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"Intl" in self && "DurationFormat" in self.Intl;
Loading
Loading