@moneylion/react-native-offer-carousel 1.8.0 → 1.8.4

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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- var _package = _interopRequireDefault(require("../package.json"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- const VERSION = exports.VERSION = _package.default.version;
7
+ // Version is kept in sync with package.json via the sync-version script
8
+ const VERSION = exports.VERSION = "1.8.4";
10
9
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_package","_interopRequireDefault","require","e","__esModule","default","VERSION","exports","packageJson","version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AACnC,MAAMG,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGE,gBAAW,CAACC,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["VERSION","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,OAAO","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- import packageJson from "../package.json";
2
- export const VERSION = packageJson.version;
1
+ // Version is kept in sync with package.json via the sync-version script
2
+ export const VERSION = "1.8.4";
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["packageJson","VERSION","version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAOA,WAAW,MAAM,iBAAiB;AACzC,OAAO,MAAMC,OAAO,GAAGD,WAAW,CAACE,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["VERSION"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,OAAO","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  export * from "./components/MoneyLionOfferCarousel";
2
2
  export type { UserData } from "./capabilities/configuration/src/userData/types";
3
3
  export type { onInitializeProps, onRateTableSubmitProps, onRateTableResponseProps, onOfferDisplayInViewportProps, onOfferClickProps, onOfferDetailsPageOpenProps, onOfferDetailsPageCloseProps, } from "./context/EventHandlerProvider";
4
+ export type { ErrorCodes, MoneyLionOfferCarouselError, } from "./capabilities/errors/types";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AAEpD,YAAY,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EACX,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,GAC5B,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AAEpD,YAAY,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EACX,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,GAC5B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACX,UAAU,EACV,2BAA2B,GAC3B,MAAM,6BAA6B,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION: string;
1
+ export declare const VERSION = "1.8.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,QAAsB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneylion/react-native-offer-carousel",
3
- "version": "1.8.0",
3
+ "version": "1.8.4",
4
4
  "description": "React Native components for the Engine by MoneyLion Mobile SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -32,7 +32,9 @@
32
32
  "lint": "eslint \"**/*.{js,ts,tsx}\" && prettier . --check",
33
33
  "lint:fix": "prettier . --write && eslint --fix \"**/*.{js,ts,tsx}\"",
34
34
  "clean": "del-cli lib",
35
- "prepare": "bob build",
35
+ "sync-version": "node scripts/sync-version.js",
36
+ "version": "1.8.4",
37
+ "prepare": "yarn sync-version && bob build",
36
38
  "build:staging": "../scripts/buildStaging.sh --ios-env ./example/build-staging.ios.env --sdk-name offer-carousel",
37
39
  "build:staging:ios": "../scripts/buildStaging.ios.sh --env ./example/build-staging.ios.env --sdk-name offer-carousel",
38
40
  "build:staging:android": "../scripts/buildStaging.android.sh --sdk-name offer-carousel"
package/src/index.tsx CHANGED
@@ -10,3 +10,7 @@ export type {
10
10
  onOfferDetailsPageOpenProps,
11
11
  onOfferDetailsPageCloseProps,
12
12
  } from "./context/EventHandlerProvider";
13
+ export type {
14
+ ErrorCodes,
15
+ MoneyLionOfferCarouselError,
16
+ } from "./capabilities/errors/types";
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- import packageJson from "../package.json";
2
- export const VERSION = packageJson.version;
1
+ // Version is kept in sync with package.json via the sync-version script
2
+ export const VERSION = "1.8.4";