{"name":"@expo/config-plugins","version":"1.0.15-alpha.0","keywords":["json","expo","react-native","react"],"license":"MIT","_id":"@expo/config-plugins@1.0.15-alpha.0","maintainers":[{"name":"ide","email":"ide+npm@jameside.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"expoadmin","email":"support@expo.io"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"tsapeta","email":"npm@tsapeta.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"tcdavis","email":"tc@expo.io"},{"name":"exponent","email":"exponent.team@gmail.com"},{"name":"wschurman","email":"wschurman@gmail.com"},{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"jkhales","email":"jonathan@expo.io"},{"name":"ijzerenhein","email":"hrutjes@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"},{"name":"bycedric","email":"me@bycedric.com"},{"name":"nikki93","email":"s.nikhilesh@gmail.com"},{"name":"lukmccall","email":"kosmatylukasz@gmail.com"},{"name":"jonsamp","email":"sampjon@gmail.com"}],"homepage":"https://github.com/expo/expo-cli/tree/master/packages/config-plugins#readme","bugs":{"url":"https://github.com/expo/expo-cli/issues"},"dist":{"shasum":"0f6c4250fa96ec597bb890dddb3502192c705e27","tarball":"http://registry-npm.ywwl.com/@expo/config-plugins/download/@expo/config-plugins-1.0.15-alpha.0.tgz","fileCount":240,"integrity":"sha512-gWCHnh96RoWdhF7gsdGjuw7PhNOLl6vsB2PWpbANUWA3Y96dLLTv/nVNH3bLQ8KGtlVU/mAZ1Go6AW6u08Jx7A==","signatures":[{"sig":"MEUCIEYlKF16o5CU/RZ/kkG+AUAgOv8AL13EYge3cCUsR/MHAiEA8lEHrgk1U69dk/u0Gm44vVGC25gdncq7ku0LTsDiBnk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":819729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCVsjCRA9TVsSAnZWagAA8Z4QAJfVTBeavYLeNdn7448W\n8ksvYgR+NGv/Ql1MlWzZ8WRv7APTJLj35x9lmxOlkTAisU5hROmiSJSkOnDF\nhjOaz2MtncRUFXStRyBP2i99uzBssOPD1mPvTem+R9NOgUZnXb2+XO5QeeI4\nCkeN55nrr5/e4l9n2pi4b/RdBEISDQbB/yIQlI/LIwaq4HWqmyB6mi2sRXj+\nXzAE9hfkyFJWi50q6QgSjhkrDTUnvuklJBs2Mq54J9i4GWWuw95mkT1hxlY6\nTl/GDvVPVU7WvSu+GyBDjuB6+BuWsQk1npQICrgw1Yeis5wCmp7CTAsYZeKd\nO5sDADgNcl1jXZP/BpUS3w1+rGYzyeplUtJldIayi6sRo2HPx20OdWyIzgGV\n4a9IIN64TNkwIf0GtPDCuum7DjNtGtzoDsv4HkQXTaenCdS9BpOZirUs3lFy\nmDGN6zwIhAl+Qt2fqNL3rssYUhO5J2ovQkkuUvl7Rhe3iP7QJzOO3utAKbft\nfGie9N+cq8twP0uoS4SXSRQjYvsgbxyOVW7BHrvJkaAfK3bo9015sN0l6aG/\n5z+hNDKdR5PWOmckS51e50zhwqkmO83EezuELfcdUB5/YuQlNMw4HR/PHT7E\ndOU2aaqN6e3IgVPjKxeT097SVgRgvUdfGwBwDZSMeacwscvoP3Jsezz+eTOb\nvhjY\r\n=8Scg\r\n-----END PGP SIGNATURE-----\r\n","size":174539,"noattachment":false,"key":"/@expo/config-plugins/-/@expo/config-plugins-1.0.15-alpha.0.tgz"},"main":"build/index.js","readme":"# Expo Config Plugins\n\nThe Expo config is a powerful tool for generating native app code from a unified JavaScript interface. Most basic functionality can be controlled by using the the [static Expo config](https://docs.expo.io/versions/latest/config/app/), but some features require manipulation of the native project files. To support complex behavior we've created config plugins, and mods (short for modifiers).\n\n> 💡 **Hands-on Learners**: Use [this sandbox][sandbox] to play with the core functionality of Expo config plugins. For more complex tests, use a local Expo project, with `expo eject --no-install` to apply changes.\n\n- [Usage](#usage)\n- [What are plugins](#what-are-plugins)\n- [Creating a plugin](#creating-a-plugin)\n  - [Importing plugins](#importing-plugins)\n  - [Chaining plugins](#chaining-plugins)\n- [What are mods](#what-are-mods)\n- [How mods works](#how-mods-works)\n  - [Default mods](#default-mods)\n  - [Mod plugins](#mod-plugins)\n- [Creating a mod](#creating-a-mod)\n  - [Experimental functionality](#experimental-functionality)\n- [Plugin module resolution](#plugin-module-resolution)\n  - [Project file](#project-file)\n  - [app.plugin.js](#apppluginjs)\n  - [Node module default file](#node-module-default-file)\n  - [Project folder](#project-folder)\n  - [Module internals](#module-internals)\n  - [Raw functions](#raw-functions)\n- [Why app.plugin.js for plugins](#why-apppluginjs-for-plugins)\n\n**Quick facts**\n\n- Plugins are functions that can change values on your Expo config.\n- Plugins are mostly meant to be used with [`expo eject`][cli-eject] or `eas build` commands.\n- We recommend you use plugins with `app.config.json` or `app.config.js` instead of `app.json` (no top-level `expo` object is required).\n- `mods` are async functions that modify native project files, such as source code or configuration (plist, xml) files.\n- Changes performed with `mods` will require rebuilding the affected native projects.\n- `mods` are removed from the public app manifest.\n- 💡 Everything in the Expo config must be able to be converted to JSON (with the exception of the `mods` field). So no async functions outside of `mods` in your config plugins!\n\n## Usage\n\nHere is a basic config that uses the `expo-splash-screen` plugin:\n\n```json\n{\n  \"name\": \"my app\",\n  \"plugins\": [\"expo-splash-screen\"]\n}\n```\n\nSome plugins can be customized by passing an array, where the second argument is the options:\n\n```json\n{\n  \"name\": \"my app\",\n  \"plugins\": [\n    [\n      \"expo-splash-screen\",\n      {\n        /* Values passed to the plugin */\n      }\n    ]\n  ]\n}\n```\n\nIf you run `expo eject`, the `mods` will be compiled, and the native files be changed! The changes won't be fully shown until you rebuild the native project with `eas build -p ios` or locally with `npx react-native run-ios` or `npx react-native run-android`.\n\nFor instance, if you add a plugin that adds permission messages to your app, the app will need to be rebuilt.\n\nAnd that's it! Now you're using Config plugins. No more having to interact with the native projects!\n\n> 💡 Check out all the different ways you can import `plugins`: [plugin module resolution](#Plugin-module-resolution)\n\n## What are plugins\n\nPlugins are **synchronous** functions that accept an [`ExpoConfig`][config-docs] and return a modified [`ExpoConfig`][config-docs].\n\n- Plugins should be named using the following convention: `with<Plugin Functionality>` i.e. `withFacebook`.\n- Plugins should be synchronous and their return value should be serializable, except for any `mods` that are added.\n- Optionally, a second argument can be passed to the plugin to configure it.\n- `plugins` are always invoked when the config is read by `@expo/config`s `getConfig` method. However, the `mods` are only invoked during the \"syncing\" phase of `expo eject`.\n\n## Creating a plugin\n\n> 💡 Hands-on learners: Try this [sandbox](https://codesandbox.io/s/expo-config-plugins-basic-example-xopto?file=/src/project/app.config.js) (check the terminal logs).\n\nHere is an example of the most basic config plugin:\n\n```ts\nconst withNothing = config => config;\n```\n\nSay you wanted to create a plugin which added custom values to the native iOS Info.plist:\n\n```ts\nconst withMySDK = (config, { apiKey }) => {\n  // Ensure the objects exist\n  if (!config.ios) {\n    config.ios = {};\n  }\n  if (!config.ios.infoPlist) {\n    config.ios.infoPlist = {};\n  }\n\n  // Append the apiKey\n  config.ios.infoPlist['MY_CUSTOM_NATIVE_IOS_API_KEY'] = apiKey;\n\n  return config;\n};\n\n// 💡 Usage:\n\n/// Create a config\nconst config = {\n  name: 'my app',\n};\n\n/// Use the plugin\nexport default withMySDK(config, { apiKey: 'X-XXX-XXX' });\n```\n\n### Importing plugins\n\nYou may want to create a plugin in a different file, here's how:\n\n- The root file can be any JS file or a file named `app.plugin.js` in the [root of a Node module](#root-app.plugin.js).\n- The file should export a function that satisfies the [`ConfigPlugin`][configplugin] type.\n- Plugins should be transpiled for Node environments ahead of time!\n  - They should support the versions of Node that [Expo supports](https://docs.expo.io/get-started/installation/#requirements) (LTS).\n  - No `import/export` keywords, use `module.exports` in the shipped plugin file.\n  - Expo only transpiles the user's initial `app.config` file, anything more would require a bundler which would add too many \"opinions\" for a config file.\n\nConsider the following example that changes the config name:\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── my-plugin.js ➡️ Our custom plugin file\n```\n\n`my-plugin.js`\n\n```js\nmodule.exports = function withCustomName(config, name) {\n  // Modify the config\n  config.name = 'custom-' + name;\n  // Return the results\n  return config;\n};\n```\n\n`app.config.json`\n\n```json\n{\n  \"name\": \"my-app\",\n  \"plugins\": [\"./my-plugin\", \"app\"]\n}\n```\n\n↓ ↓ ↓\n\n**Evaluated config JSON**\n\n```json\n{\n  \"name\": \"custom-app\",\n  \"plugins\": [\"./my-plugin\", \"app\"]\n}\n```\n\n### Chaining plugins\n\nOnce you add a few plugins, your `app.config.js` code can become difficult to read and manipulate. To combat this, `@expo/config-plugins` provides a `withPlugins` function which can be used to chain plugins together and execute them in order.\n\n```js\n/// Create a config\nconst config = {\n  name: 'my app',\n};\n\n// ❌ Hard to read\nwithDelta(withFoo(withBar(config, 'input 1'), 'input 2'), 'input 3');\n\n// ✅ Easy to read\nimport { withPlugins } from '@expo/config-plugins';\n\nwithPlugins(config, [\n  [withBar, 'input 1'],\n  [withFoo, 'input 2'],\n  // When no input is required, you can just pass the method...\n  withDelta,\n]);\n```\n\nTo support JSON configs, we also added the `plugins` array which just uses `withPlugins` under the hood.\nHere is the same config as above, but even simpler:\n\n```js\nexport default {\n  name: 'my app',\n  plugins: [\n    [withBar, 'input 1'],\n    [withFoo, 'input 2'],\n    [withDelta, 'input 3'],\n  ],\n};\n```\n\n## What are mods\n\nAn async function which accepts a config and a data object, then manipulates and returns both as an object.\n\nModifiers (mods for short) are added to the `mods` object of the Expo config. The `mods` object is different to the rest of the Expo config because it doesn't get serialized after the initial reading, this means you can use it to perform actions _during_ code generation. If possible, you should attempt to use basic plugins instead of mods as they're simpler to work with.\n\n- `mods` are omitted from the manifest and **cannot** be accessed via `Updates.manifest`. mods exist for the sole purpose of modifying native files during code generation!\n- `mods` can be used to read and write files safely during the `expo eject` command. This is how Expo CLI modifies the Info.plist, entitlements, xcproj, etc...\n- `mods` are platform specific and should always be added to a platform specific object:\n\n`app.config.js`\n\n```js\nmodule.exports = {\n  name: 'my-app',\n  mods: {\n    ios: {\n      /* iOS mods... */\n    },\n    android: {\n      /* Android mods... */\n    },\n  },\n};\n```\n\n## How mods work\n\n- The config is read using `getConfig` from `@expo/config`\n- All of the core functionality supported by Expo is added via plugins in `withExpoIOSPlugins`. This is stuff like name, version, icons, locales, etc.\n- The config is passed to the compiler `compileModifiersAsync`\n- The compiler adds base mods which are responsible for reading data (like `Info.plist`), executing a named mod (like `mods.ios.infoPlist`), then writing the results to the file system.\n- The compiler iterates over all of the mods and asynchronously evaluates them, providing some base props like the `projectRoot`.\n  - After each mod, error handling asserts if the mod chain was corrupted by an invalid mod.\n\n<!-- TODO: Move to a section about mod compiler -->\n\n> 💡 Here is a [colorful chart](https://whimsical.com/UjytoYXT2RN43LywvWExfK) of the mod compiler for visual learners.\n\n### Default mods\n\nThe following default mods are provided by the mod compiler for common file manipulation:\n\n- `mods.ios.appDelegate` -- Modify the `ios/<name>/AppDelegate.m` as a string.\n- `mods.ios.infoPlist` -- Modify the `ios/<name>/Info.plist` as JSON (parsed with [`@expo/plist`](https://www.npmjs.com/package/@expo/plist)).\n- `mods.ios.entitlements` -- Modify the `ios/<name>/<product-name>.entitlements` as JSON (parsed with [`@expo/plist`](https://www.npmjs.com/package/@expo/plist)).\n- `mods.ios.expoPlist` -- Modify the `ios/<name>/Expo.plist` as JSON (Expo updates config for iOS) (parsed with [`@expo/plist`](https://www.npmjs.com/package/@expo/plist)).\n- `mods.ios.xcodeproj` -- Modify the `ios/<name>.xcodeproj` as an `XcodeProject` object (parsed with [`xcode`](https://www.npmjs.com/package/xcode)).\n\n- `mods.android.manifest` -- Modify the `android/app/src/main/AndroidManifest.xml` as JSON (parsed with [`xml2js`](https://www.npmjs.com/package/xml2js)).\n- `mods.android.strings` -- Modify the `android/app/src/main/res/values/strings.xml` as JSON (parsed with [`xml2js`](https://www.npmjs.com/package/xml2js)).\n- `mods.android.mainActivity` -- Modify the `android/app/src/main/<package>/MainActivity.java` as a string.\n- `mods.android.appBuildGradle` -- Modify the `android/app/build.gradle` as a string.\n- `mods.android.projectBuildGradle` -- Modify the `android/build.gradle` as a string.\n\nAfter the mods are resolved, the contents of each mod will be written to disk. Custom default mods can be added to support new native files.\nFor example, you can create a mod to support the `GoogleServices-Info.plist`, and pass it to other mods.\n\n### Mod plugins\n\nMods are responsible for a lot of things, so they can be pretty difficult to understand at first.\nIf you're developing a feature that requires mods, it's best not to interact with them directly.\n\nInstead you should use the helper mods provided by `@expo/config-plugins`:\n\n- iOS\n  - `withAppDelegate`\n  - `withInfoPlist`\n  - `withEntitlementsPlist`\n  - `withExpoPlist`\n  - `withXcodeProject`\n- Android\n  - `withAndroidManifest`\n  - `withStringsXml`\n  - `withMainActivity`\n  - `withProjectBuildGradle`\n  - `withAppBuildGradle`\n  - `withSettingsGradle`\n\nA mod plugin gets passed a `config` object with additional properties `modResults` and `modRequest` added to it.\n\n- `modResults`: The object to modify and return. The type depends on the mod that's being used.\n- `modRequest`: Additional properties supplied by the mod compiler.\n  - `projectRoot: string`: Project root directory for the universal app.\n  - `platformProjectRoot: string`: Project root for the specific platform.\n  - `modName: string`: Name of the mod.\n  - `platform: ModPlatform`: Name of the platform used in the mods config.\n  - `projectName?: string`: iOS only: The path component used for querying project files. ex. `projectRoot/ios/[projectName]/`\n\n## Creating a mod\n\nSay you wanted to write a mod to update the Xcode Project's \"product name\":\n\n```ts\nimport { ConfigPlugin, withXcodeProject } from '@expo/config-plugins';\n\nconst withCustomProductName: ConfigPlugin = (config, customName) => {\n  return withXcodeProject(config, async config => {\n    // config = { modResults, modRequest, ...expoConfig }\n\n    const xcodeProject = config.modResults;\n    xcodeProject.productName = customName;\n\n    return config;\n  });\n};\n\n// 💡 Usage:\n\n/// Create a config\nconst config = {\n  name: 'my app',\n};\n\n/// Use the plugin\nexport default withCustomProductName(config, 'new_name');\n```\n\n### Experimental functionality\n\nSome parts of the mod system aren't fully flushed out, these parts use `withDangerousModifier` to read/write data without a base mod. These methods essentially act as their own base mod and cannot be extended. Icons for example, currently use the dangerous mod to perform a single generation step with no ability to customize the results.\n\n```ts\nexport const withIcons: ConfigPlugin = config => {\n  return withDangerousModifier(config, async config => {\n    // No modifications are made to the config\n    await setIconsAsync(config, config.modRequest.projectRoot);\n    return config;\n  });\n};\n```\n\nBe careful using `withDangerousModifier` as it is subject to change in the future.\nThe order with which it gets executed is not reliable either.\nCurrently dangerous mods run first before all other modifiers, this is because we use dangerous mods internally for large file system refactoring like when the package name changes.\n\n## Plugin module resolution\n\nThe strings passed to the `plugins` array can be resolved in a few different ways.\n\n> Any resolution pattern that isn't specified below is unexpected behavior, and subject to breaking changes.\n\n### Project file\n\nYou can quickly create a plugin in your project and use it in your config.\n\n- ✅ `'./my-config-plugin'`\n- ❌ `'./my-config-plugin.js'`\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── my-config-plugin.js ➡️ ✅ `module.exports = (config) => config`\n```\n\n### app.plugin.js\n\nSometimes you want your package to export React components and also support a plugin, to do this, multiple entry points need to be used (because the transpilation (Babel preset) may be different).\nIf a `app.plugin.js` file is present in the root of a Node module's folder, it'll be used instead of the package's `main` file.\n\n- ✅ `'expo-splash-screen'`\n- ❌ `'expo-splash-screen/app.plugin.js'`\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── node_modules/expo-splash-screen/ ➡️ Module installed from NPM (works with Yarn workspaces as well).\n    ├── package.json ➡️ The `main` file will be used if `app.plugin.js` doesn't exist.\n    ├── app.plugin.js ➡️ ✅ `module.exports = (config) => config` -- must export a function.\n    ╰── build/index.js ➡️ ❌ Ignored because `app.plugin.js` exists. This could be used with `expo-splash-screen/build/index.js`\n```\n\n### Node module default file\n\nA config plugin in a node module (without an `app.plugin.js`) will use the `main` file defined in the `package.json`.\n\n- ✅ `'expo-splash-screen'`\n- ❌ `'expo-splash-screen/build/index'`\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── node_modules/expo-splash-screen/ ➡️ Module installed from NPM (works with Yarn workspaces as well).\n    ├── package.json ➡️ The `main` file points to `build/index.js`\n    ╰── build/index.js ➡️  ✅ Node resolves to this module.\n```\n\n### Project folder\n\n- ✅ `'./my-config-plugin'`\n- ❌ `'./my-config-plugin.js'`\n\nThis is different to how Node modules work because `app.plugin.js` won't be resolved by default in a directory. You'll have to manually specify `./my-config-plugin/app.plugin.js` to use it, otherwise `index.js` in the directory will be used.\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── my-config-plugin/ ➡️ Folder containing plugin code\n    ╰── index.js ➡️ ✅ By default, Node resolves a folder's index.js file as the main file.\n```\n\n### Module internals\n\nIf a file inside a Node module is specified, then the module's root `app.plugin.js` resolution will be skipped. This is referred to as \"reaching inside a package\" and is considered **bad form**.\nWe support this to make testing, and plugin authoring easier, but we don't expect library authors to expose their plugins like this as a public API.\n\n- ❌ `'expo-splash-screen/build/index.js'`\n- ❌ `'expo-splash-screen/build'`\n\n```\n╭── app.config.js ➡️ Expo Config\n╰── node_modules/expo-splash-screen/ ➡️ Module installed from npm (works with Yarn workspaces as well).\n    ├── package.json ➡️ The `main` file will be used if `app.plugin.js` doesn't exist.\n    ├── app.plugin.js ➡️ ❌ Ignored because the reference reaches into the package internals.\n    ╰── build/index.js ➡️ ✅ `module.exports = (config) => config`\n```\n\n### Raw functions\n\nYou can also just pass in a config plugin.\n\n```js\nconst withCustom = (config, props) => config;\n\nconst config = {\n  plugins: [\n    [\n      withCustom,\n      {\n        /* props */\n      },\n    ],\n    // Without props\n    withCustom,\n  ],\n};\n```\n\nOne caveat to using functions instead of strings is that serialization will replace the function with the function's name. This keeps **manifests** (kinda like the `index.html` for your app) working as expected.\n\nHere is what the serialized config would look like:\n\n```json\n{\n  \"plugins\": [[\"withCustom\", {}], \"withCustom\"]\n}\n```\n\n## Why app.plugin.js for plugins\n\nConfig resolution searches for a `app.plugin.js` first when a Node module name is provided.\nThis is because Node environments are often different to iOS, Android, or web JS environments and therefore require different transpilation presets (ex: `module.exports` instead of `import/export`).\n\nBecause of this reasoning, the root of a Node module is searched instead of right next to the `index.js`. Imagine you had a TypeScript Node module where the transpiled main file was located at `build/index.js`, if Expo config plugin resolution searched for `build/app.plugin.js` you'd lose the ability to transpile the file differently.\n\n[config-docs]: https://docs.expo.io/versions/latest/config/app/\n[cli-eject]: https://docs.expo.io/workflow/expo-cli/#eject\n[sandbox]: https://codesandbox.io/s/expo-config-plugins-8qhof?file=/src/project/app.config.js\n[configplugin]: ./src/Plugin.types.ts\n","scripts":{"lint":"eslint .","test":"jest","build":"tsc","clean":"rimraf build ./tsconfig.tsbuildinfo","watch":"tsc --watch","prepare":"yarn run clean && yarn build"},"_npmUser":{"name":"dsokal","email":"dominiksokal@gmail.com"},"repository":{"url":"git+https://github.com/expo/expo-cli.git","type":"git","directory":"packages/config-plugins"},"_npmVersion":"6.14.6","description":"A library for Expo config plugins","directories":{},"_nodeVersion":"12.18.4","dependencies":{"glob":"7.1.6","slash":"^3.0.0","xcode":"^2.1.0","getenv":"0.7.0","xml2js":"^0.4.23","find-up":"~5.0.0","slugify":"^1.3.4","fs-extra":"9.0.0","@expo/plist":"0.0.11","@expo/json-file":"8.2.25","@expo/image-utils":"0.3.10","@expo/config-types":"^40.0.0-beta.2","@expo/configure-splash-screen":"0.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"memfs":"^2.15.5","rimraf":"^3.0.2","@types/xml2js":"^0.4.5","@types/find-up":"^4.0.0","@types/fs-extra":"^9.0.1"},"_npmOperationalInternal":{"tmp":"tmp/config-plugins_1.0.15-alpha.0_1611225891392_0.8747703541852625","host":"s3://npm-registry-packages"},"publish_time":1611225891608,"_cnpm_publish_time":1611225891608,"dist-tags":{"canary":"58.0.0-canary-20260909-ea7a89a","canary-sdk-55":"55.0.7-canary-20260429-a5e59cf","canary-sdk-56":"56.0.9-canary-20260701-9100865","latest":"58.0.13","next":"58.0.9","sdk-50":"7.8.4","sdk-51":"8.0.4","sdk-52":"9.0.17","sdk-54":"54.0.6","sdk-55":"55.0.12","sdk-56":"56.0.17","sdk-57":"57.0.13"}}