@react-native/assets-registry 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 ADDED
@@ -0,0 +1,21 @@
1
+ # @react-native/assets-registry
2
+
3
+ [![Version][version-badge]][package]
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ yarn add --dev @react-native/assets-registry
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/assets-registry?style=flat-square
14
+ [package]: https://www.npmjs.com/package/@react-native/assets-registry
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/assets`.
package/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "@react-native/assets-registry",
3
- "version": "0.73.0",
3
+ "version": "0.73.1",
4
4
  "description": "Asset support code for React Native.",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
- "url": "git@github.com:facebook/react-native.git",
8
+ "url": "https://github.com/facebook/react-native.git",
8
9
  "directory": "packages/assets"
9
10
  },
10
- "license": "MIT"
11
+ "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets#readme",
12
+ "keywords": [
13
+ "assets",
14
+ "registry",
15
+ "react-native",
16
+ "support"
17
+ ],
18
+ "bugs": "https://github.com/facebook/react-native/issues",
19
+ "engines": {
20
+ "node": ">=18"
21
+ }
11
22
  }
package/path-support.js CHANGED
@@ -82,7 +82,7 @@ function getAndroidResourceIdentifier(asset: PackagerAsset): string {
82
82
 
83
83
  function getBasePath(asset: PackagerAsset): string {
84
84
  const basePath = asset.httpServerLocation;
85
- return basePath.startsWith('/') ? basePath.substr(1) : basePath;
85
+ return basePath.startsWith('/') ? basePath.slice(1) : basePath;
86
86
  }
87
87
 
88
88
  module.exports = {