@react-native/js-polyfills 0.73.0 → 0.73.1
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.
- package/README.md +21 -0
- package/console.js +2 -2
- package/package.json +15 -3
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @react-native/js-polyfills
|
|
2
|
+
|
|
3
|
+
[![Version][version-badge]][package]
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
yarn add @react-native/js-polyfills
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
*Note: We're using `yarn` to install deps. Feel free to change commands to use `npm` 3+ and `npx` if you like*
|
|
12
|
+
|
|
13
|
+
[version-badge]: https://img.shields.io/npm/v/@react-native/js-polyfills?style=flat-square
|
|
14
|
+
[package]: https://www.npmjs.com/package/@react-native/js-polyfills
|
|
15
|
+
|
|
16
|
+
## Testing
|
|
17
|
+
|
|
18
|
+
To run the tests in this package, run the following commands from the React Native root folder:
|
|
19
|
+
|
|
20
|
+
1. `yarn` to install the dependencies. You just need to run this once
|
|
21
|
+
2. `yarn jest packages/polyfills`.
|
package/console.js
CHANGED
|
@@ -252,7 +252,7 @@ const inspect = (function () {
|
|
|
252
252
|
return ' ' + line;
|
|
253
253
|
})
|
|
254
254
|
.join('\n')
|
|
255
|
-
.
|
|
255
|
+
.slice(2);
|
|
256
256
|
} else {
|
|
257
257
|
str =
|
|
258
258
|
'\n' +
|
|
@@ -274,7 +274,7 @@ const inspect = (function () {
|
|
|
274
274
|
}
|
|
275
275
|
name = JSON.stringify('' + key);
|
|
276
276
|
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
277
|
-
name = name.
|
|
277
|
+
name = name.slice(1, name.length - 1);
|
|
278
278
|
name = ctx.stylize(name, 'name');
|
|
279
279
|
} else {
|
|
280
280
|
name = name
|
package/package.json
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/js-polyfills",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.1",
|
|
4
4
|
"description": "Polyfills for React Native.",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
|
-
"url": "
|
|
8
|
+
"url": "https://github.com/facebook/react-native.git",
|
|
8
9
|
"directory": "packages/polyfills"
|
|
9
10
|
},
|
|
10
|
-
"
|
|
11
|
+
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/polyfills#readme",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"polyfill",
|
|
14
|
+
"polyfills",
|
|
15
|
+
"js",
|
|
16
|
+
"js-polyfills",
|
|
17
|
+
"react-native"
|
|
18
|
+
],
|
|
19
|
+
"bugs": "https://github.com/facebook/react-native/issues",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
}
|
|
11
23
|
}
|