@discord/intl 0.20.0 → 0.21.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.
@@ -54,12 +54,8 @@ function makeMessagesProxy(loader) {
54
54
  return Reflect.ownKeys(self);
55
55
  },
56
56
  getOwnPropertyDescriptor(self, prop) {
57
- return {
58
- value: (self[prop] || (self[prop] = makeBind(prop))),
59
- configurable: true,
60
- enumerable: true,
61
- writable: false,
62
- };
57
+ self[prop] || (self[prop] = makeBind(prop));
58
+ return Reflect.getOwnPropertyDescriptor(self, prop);
63
59
  },
64
60
  get(self, prop) {
65
61
  if (prop === '$$typeof') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/intl",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "license": "MIT",
5
5
  "description": "Client runtime for managing messages and translations in a React project.",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@formatjs/intl": "^2.10.1",
24
24
  "@intrnl/xxhash64": "^0.1.2",
25
25
  "intl-messageformat": "^10.5.11",
26
- "@discord/intl-ast": "0.20.0"
26
+ "@discord/intl-ast": "0.21.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@formatjs/intl-durationformat": "^0.7.3",
@@ -72,12 +72,8 @@ export function makeMessagesProxy(loader: MessageLoader): Record<string, IntlMes
72
72
  return Reflect.ownKeys(self);
73
73
  },
74
74
  getOwnPropertyDescriptor(self, prop) {
75
- return {
76
- value: (self[prop] ||= makeBind(prop as string)),
77
- configurable: true,
78
- enumerable: true,
79
- writable: false,
80
- };
75
+ self[prop] ||= makeBind(prop as string);
76
+ return Reflect.getOwnPropertyDescriptor(self, prop);
81
77
  },
82
78
  get(self, prop) {
83
79
  if (prop === '$$typeof') {