use-intl 2.7.0 → 2.7.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,126 @@
1
+ function _extends() {
2
+ _extends = Object.assign || function (target) {
3
+ for (var i = 1; i < arguments.length; i++) {
4
+ var source = arguments[i];
5
+
6
+ for (var key in source) {
7
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
8
+ target[key] = source[key];
9
+ }
10
+ }
11
+ }
12
+
13
+ return target;
14
+ };
15
+
16
+ return _extends.apply(this, arguments);
17
+ }
18
+
19
+ function _inheritsLoose(subClass, superClass) {
20
+ subClass.prototype = Object.create(superClass.prototype);
21
+ subClass.prototype.constructor = subClass;
22
+
23
+ _setPrototypeOf(subClass, superClass);
24
+ }
25
+
26
+ function _getPrototypeOf(o) {
27
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
28
+ return o.__proto__ || Object.getPrototypeOf(o);
29
+ };
30
+ return _getPrototypeOf(o);
31
+ }
32
+
33
+ function _setPrototypeOf(o, p) {
34
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
35
+ o.__proto__ = p;
36
+ return o;
37
+ };
38
+
39
+ return _setPrototypeOf(o, p);
40
+ }
41
+
42
+ function _isNativeReflectConstruct() {
43
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
44
+ if (Reflect.construct.sham) return false;
45
+ if (typeof Proxy === "function") return true;
46
+
47
+ try {
48
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
49
+ return true;
50
+ } catch (e) {
51
+ return false;
52
+ }
53
+ }
54
+
55
+ function _construct(Parent, args, Class) {
56
+ if (_isNativeReflectConstruct()) {
57
+ _construct = Reflect.construct;
58
+ } else {
59
+ _construct = function _construct(Parent, args, Class) {
60
+ var a = [null];
61
+ a.push.apply(a, args);
62
+ var Constructor = Function.bind.apply(Parent, a);
63
+ var instance = new Constructor();
64
+ if (Class) _setPrototypeOf(instance, Class.prototype);
65
+ return instance;
66
+ };
67
+ }
68
+
69
+ return _construct.apply(null, arguments);
70
+ }
71
+
72
+ function _isNativeFunction(fn) {
73
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
74
+ }
75
+
76
+ function _wrapNativeSuper(Class) {
77
+ var _cache = typeof Map === "function" ? new Map() : undefined;
78
+
79
+ _wrapNativeSuper = function _wrapNativeSuper(Class) {
80
+ if (Class === null || !_isNativeFunction(Class)) return Class;
81
+
82
+ if (typeof Class !== "function") {
83
+ throw new TypeError("Super expression must either be null or a function");
84
+ }
85
+
86
+ if (typeof _cache !== "undefined") {
87
+ if (_cache.has(Class)) return _cache.get(Class);
88
+
89
+ _cache.set(Class, Wrapper);
90
+ }
91
+
92
+ function Wrapper() {
93
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
94
+ }
95
+
96
+ Wrapper.prototype = Object.create(Class.prototype, {
97
+ constructor: {
98
+ value: Wrapper,
99
+ enumerable: false,
100
+ writable: true,
101
+ configurable: true
102
+ }
103
+ });
104
+ return _setPrototypeOf(Wrapper, Class);
105
+ };
106
+
107
+ return _wrapNativeSuper(Class);
108
+ }
109
+
110
+ function _objectWithoutPropertiesLoose(source, excluded) {
111
+ if (source == null) return {};
112
+ var target = {};
113
+ var sourceKeys = Object.keys(source);
114
+ var key, i;
115
+
116
+ for (i = 0; i < sourceKeys.length; i++) {
117
+ key = sourceKeys[i];
118
+ if (excluded.indexOf(key) >= 0) continue;
119
+ target[key] = source[key];
120
+ }
121
+
122
+ return target;
123
+ }
124
+
125
+ export { _construct as construct, _extends as extends, _getPrototypeOf as getPrototypeOf, _inheritsLoose as inheritsLoose, _isNativeFunction as isNativeFunction, _isNativeReflectConstruct as isNativeReflectConstruct, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _setPrototypeOf as setPrototypeOf, _wrapNativeSuper as wrapNativeSuper };
126
+ //# sourceMappingURL=use-intl.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-intl.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}