@robylon/react-native-sdk 2.0.19-staging.4 → 2.0.19-staging.5

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.
Files changed (30) hide show
  1. package/lib/commonjs/version.js +1 -1
  2. package/lib/commonjs/version.js.map +1 -1
  3. package/lib/commonjs/versions/version.dev.js +2 -0
  4. package/lib/commonjs/versions/version.dev.js.map +1 -0
  5. package/lib/commonjs/versions/version.production.js +2 -0
  6. package/lib/commonjs/versions/version.production.js.map +1 -0
  7. package/lib/commonjs/versions/version.staging.js +2 -0
  8. package/lib/commonjs/versions/version.staging.js.map +1 -0
  9. package/lib/module/version.js +1 -1
  10. package/lib/module/version.js.map +1 -1
  11. package/lib/module/versions/version.dev.js +2 -0
  12. package/lib/module/versions/version.dev.js.map +1 -0
  13. package/lib/module/versions/version.production.js +2 -0
  14. package/lib/module/versions/version.production.js.map +1 -0
  15. package/lib/module/versions/version.staging.js +2 -0
  16. package/lib/module/versions/version.staging.js.map +1 -0
  17. package/lib/typescript/version.d.ts +1 -1
  18. package/lib/typescript/version.d.ts.map +1 -1
  19. package/lib/typescript/versions/version.dev.d.ts +2 -0
  20. package/lib/typescript/versions/version.dev.d.ts.map +1 -0
  21. package/lib/typescript/versions/version.production.d.ts +2 -0
  22. package/lib/typescript/versions/version.production.d.ts.map +1 -0
  23. package/lib/typescript/versions/version.staging.d.ts +2 -0
  24. package/lib/typescript/versions/version.staging.d.ts.map +1 -0
  25. package/package.json +5 -5
  26. package/scripts/update-version.js +21 -8
  27. package/src/version.ts +1 -1
  28. package/src/versions/version.dev.ts +2 -0
  29. package/src/versions/version.production.ts +2 -0
  30. package/src/versions/version.staging.ts +2 -0
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.4';
1
+ Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"SDK_VERSION",{enumerable:true,get:function get(){return _version.SDK_VERSION;}});var _version=require("./versions/version.staging");
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["_version","require"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"yKACA,IAAAA,QAAA,CAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION="0.0.0-dev.0";
2
+ //# sourceMappingURL=version.dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.dev.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,aAAa","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION="0.0.0";
2
+ //# sourceMappingURL=version.production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.production.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.5';
2
+ //# sourceMappingURL=version.staging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.staging.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.4';
1
+ Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"SDK_VERSION",{enumerable:true,get:function get(){return _version.SDK_VERSION;}});var _version=require("./versions/version.staging");
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["_version","require"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"yKACA,IAAAA,QAAA,CAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION="0.0.0-dev.0";
2
+ //# sourceMappingURL=version.dev.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.dev.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,aAAa","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION="0.0.0";
2
+ //# sourceMappingURL=version.production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.production.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.5';
2
+ //# sourceMappingURL=version.staging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["versions/version.staging.ts"],"mappings":"oFACO,GAAM,CAAAA,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,kBAAkB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.19-staging.4";
1
+ export { SDK_VERSION } from './versions/version.staging';
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,WAAW,qBAAqB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SDK_VERSION = "0.0.0-dev.0";
2
+ //# sourceMappingURL=version.dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.dev.d.ts","sourceRoot":"","sources":["../../../src/versions/version.dev.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SDK_VERSION = "0.0.0";
2
+ //# sourceMappingURL=version.production.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.production.d.ts","sourceRoot":"","sources":["../../../src/versions/version.production.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SDK_VERSION = "2.0.19-staging.5";
2
+ //# sourceMappingURL=version.staging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.staging.d.ts","sourceRoot":"","sources":["../../../src/versions/version.staging.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robylon/react-native-sdk",
3
- "version": "2.0.19-staging.4",
3
+ "version": "2.0.19-staging.5",
4
4
  "description": "React Native SDK for Robylon",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -21,10 +21,10 @@
21
21
  "version:dev": "npm version prerelease --preid dev",
22
22
  "version:staging": "npm version prerelease --preid staging",
23
23
  "version:production": "npm version patch",
24
- "publish:dev": "npm run clean && npm run prebuild:dev && npm run version:dev && npm run build:dev && npm publish --tag dev",
25
- "publish:staging": "node scripts/validate-publish.js staging && npm version $(node scripts/get-next-version.js staging) && node scripts/update-version.js && npm run build:staging && npm publish --tag staging",
26
- "publish:production": "node scripts/validate-publish.js production && npm version $(node scripts/get-next-version.js production) && npm publish",
27
- "publish:hotfix": "node scripts/validate-publish.js hotfix && npm version $(node scripts/get-next-version.js hotfix) && npm publish --tag hotfix",
24
+ "publish:dev": "npm run clean && npm run prebuild:dev && npm run version:dev && node scripts/update-version.js dev && npm run build:dev && npm publish --tag dev",
25
+ "publish:staging": "node scripts/validate-publish.js staging && npm version $(node scripts/get-next-version.js staging) && node scripts/update-version.js staging && npm run build:staging && npm publish --tag staging",
26
+ "publish:production": "node scripts/validate-publish.js production && npm version $(node scripts/get-next-version.js production) && node scripts/update-version.js production && npm run build:production && npm publish",
27
+ "publish:hotfix": "node scripts/validate-publish.js hotfix && npm version $(node scripts/get-next-version.js hotfix) && node scripts/update-version.js production && npm run build:production && npm publish --tag hotfix",
28
28
  "postinstall": "node scripts/setup-git-hooks.js",
29
29
  "branch": "node scripts/create-branch.js",
30
30
  "tag": "node scripts/create-version-tag.js"
@@ -1,15 +1,28 @@
1
1
  const fs = require("fs");
2
2
  const path = require("path");
3
3
 
4
- // Read version from package.json
5
- const packageJson = require("../package.json");
6
- const version = packageJson.version;
4
+ function updateVersion(env) {
5
+ const packageJson = require("../package.json");
6
+ const version = packageJson.version;
7
7
 
8
- // Create version.ts content
9
- const content = `// This file is auto-generated. Do not modify it manually.
8
+ const content = `// This file is auto-generated. Do not modify it manually.
10
9
  export const SDK_VERSION = '${version}';\n`;
11
10
 
12
- // Write to version.ts
13
- fs.writeFileSync(path.join(__dirname, "../src/version.ts"), content);
11
+ const versionFile = path.join(__dirname, `../src/versions/version.${env}.ts`);
12
+ fs.writeFileSync(versionFile, content);
14
13
 
15
- console.log(`Updated SDK_VERSION to ${version}`);
14
+ // Create/update the main version file that imports the correct version
15
+ const mainVersionContent = `// This file is auto-generated. Do not modify it manually.
16
+ export { SDK_VERSION } from './versions/version.${env}';\n`;
17
+
18
+ fs.writeFileSync(
19
+ path.join(__dirname, "../src/version.ts"),
20
+ mainVersionContent
21
+ );
22
+
23
+ console.log(`Updated ${env} SDK_VERSION to ${version}`);
24
+ }
25
+
26
+ // Get environment from command line argument or default to 'staging'
27
+ const env = process.argv[2] || "staging";
28
+ updateVersion(env);
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not modify it manually.
2
- export const SDK_VERSION = '2.0.19-staging.4';
2
+ export { SDK_VERSION } from './versions/version.staging';
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated. Do not modify it manually.
2
+ export const SDK_VERSION = "0.0.0-dev.0";
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated. Do not modify it manually.
2
+ export const SDK_VERSION = "0.0.0";
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated. Do not modify it manually.
2
+ export const SDK_VERSION = '2.0.19-staging.5';