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.
|
@@ -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;
|
|
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
package/plugin/build/withIAP.js
CHANGED
|
@@ -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
|
package/plugin/src/withIAP.ts
CHANGED
|
@@ -198,18 +198,23 @@ const withIAP: ConfigPlugin<IapPluginProps | undefined> = (config, props) => {
|
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
-
//
|
|
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(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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 = ((
|
|
213
|
-
|
|
215
|
+
const pluginExport: IapPluginCallable = ((
|
|
216
|
+
config: ExpoConfig,
|
|
217
|
+
props?: IapPluginProps,
|
|
218
|
+
) => _wrapped(config, props)) as unknown as IapPluginCallable;
|
|
214
219
|
|
|
215
|
-
export default
|
|
220
|
+
export {pluginExport as default};
|