react-native-iap 14.3.2-rc.7 → 14.3.2-rc.9

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.
@@ -10,5 +10,5 @@ type IapPluginCallable = {
10
10
  (config: ExpoConfig, props?: IapPluginProps): ExpoConfig;
11
11
  };
12
12
  declare const pluginExport: IapPluginCallable;
13
- export default pluginExport;
13
+ export { pluginExport as default };
14
14
  //# sourceMappingURL=withIAP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withIAP.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withIAP.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AA0BnD,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,KAAG,MAWzD,CAAC;AAiFF,KAAK,cAAc,GAAG;IACpB,GAAG,CAAC,EAAE;QAGJ,2BAA2B,CAAC,EAAE,OAAO,CAAC;KACvC,CAAC;CACH,CAAC;AAqEF,KAAK,iBAAiB,GAAG;IACvB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;CAC1D,CAAC;AAOF,QAAA,MAAM,YAAY,EAAE,iBACsC,CAAC;AAE3D,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"withIAP.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withIAP.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AA0BnD,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,KAAG,MAWzD,CAAC;AAiFF,KAAK,cAAc,GAAG;IACpB,GAAG,CAAC,EAAE;QAGJ,2BAA2B,CAAC,EAAE,OAAO,CAAC;KACvC,CAAC;CACH,CAAC;AAsEF,KAAK,iBAAiB,GAAG;IACvB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;CAC1D,CAAC;AASF,QAAA,MAAM,YAAY,EAAE,iBAGyC,CAAC;AAE9D,OAAO,EAAC,YAAY,IAAI,OAAO,EAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "14.3.2-rc.7",
3
+ "version": "14.3.2-rc.9",
4
4
  "description": "React Native In-App Purchases module for iOS and Android using Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -10,4 +10,4 @@ type IapPluginCallable = {
10
10
  (config: ExpoConfig, props?: IapPluginProps): ExpoConfig;
11
11
  };
12
12
  declare const pluginExport: IapPluginCallable;
13
- export default pluginExport;
13
+ export { pluginExport as default };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.modifyProjectBuildGradle = void 0;
3
+ exports.default = exports.modifyProjectBuildGradle = void 0;
4
4
  const config_plugins_1 = require("expo/config-plugins");
5
5
  const pkg = require('../../package.json');
6
6
  // Global flag to prevent duplicate logs
@@ -198,18 +198,23 @@ const withIAP: ConfigPlugin<IapPluginProps | undefined> = (config, props) => {
198
198
  }
199
199
  };
200
200
 
201
- // Export a wrapper that is callable with 1 or 2 args (for tests and typical usage)
201
+ // Standard Expo config plugin export
202
+ // Export a test-friendly wrapper that accepts 1 or 2 args
202
203
  type IapPluginCallable = {
203
204
  (config: ExpoConfig): ExpoConfig;
204
205
  (config: ExpoConfig, props?: IapPluginProps): ExpoConfig;
205
206
  };
206
207
 
207
- const _wrapped = createRunOncePlugin(withIAP, pkg.name, pkg.version) as unknown as (
208
- config: ExpoConfig,
209
- props: IapPluginProps | undefined,
210
- ) => ExpoConfig;
208
+ const _wrapped = createRunOncePlugin(
209
+ withIAP,
210
+ pkg.name,
211
+ pkg.version,
212
+ ) as unknown as (config: ExpoConfig, props: IapPluginProps | undefined) =>
213
+ ExpoConfig;
211
214
 
212
- const pluginExport: IapPluginCallable = ((config: ExpoConfig, props?: IapPluginProps) =>
213
- _wrapped(config, props)) as unknown as IapPluginCallable;
215
+ const pluginExport: IapPluginCallable = ((
216
+ config: ExpoConfig,
217
+ props?: IapPluginProps,
218
+ ) => _wrapped(config, props)) as unknown as IapPluginCallable;
214
219
 
215
- export default pluginExport;
220
+ export {pluginExport as default};