@rork-ai/toolkit-sdk 0.2.32 → 0.2.33

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.
@@ -7,6 +7,8 @@ const path = require("path");
7
7
  * Automatically wraps _layout.tsx with Rork providers
8
8
  * and redirects expo-haptics to web polyfill on web platform
9
9
  */
10
+
11
+ const libPath = path.resolve(__dirname, "../lib/module/");
10
12
  function withRorkMetro(config) {
11
13
  const originalResolveRequest = config.resolver?.resolveRequest;
12
14
  return {
@@ -21,7 +23,7 @@ function withRorkMetro(config) {
21
23
  // Redirect expo-haptics to our web polyfill on web platform
22
24
  if (moduleName === "expo-haptics" && platform === "web") {
23
25
  return {
24
- filePath: path.resolve(__dirname, "../polyfills/haptics.web.ts"),
26
+ filePath: path.resolve(libPath, "polyfills/haptics.web.ts"),
25
27
  type: "sourceFile"
26
28
  };
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"names":["path","require","withRorkMetro","config","originalResolveRequest","resolver","resolveRequest","transformer","babelTransformerPath","resolve","context","moduleName","platform","filePath","__dirname","type","module","exports"],"sourceRoot":"../../../src","sources":["metro/index.js"],"mappings":";;AAAA,MAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;;AAE5B;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CAACC,MAAM,EAAE;EAC7B,MAAMC,sBAAsB,GAAGD,MAAM,CAACE,QAAQ,EAAEC,cAAc;EAE9D,OAAO;IACL,GAAGH,MAAM;IACTI,WAAW,EAAE;MACX,GAAGJ,MAAM,CAACI,WAAW;MACrBC,oBAAoB,EAAEP,OAAO,CAACQ,OAAO,CACnC,wCACF;IACF,CAAC;IACDJ,QAAQ,EAAE;MACR,GAAGF,MAAM,CAACE,QAAQ;MAClBC,cAAc,EAAEA,CAACI,OAAO,EAAEC,UAAU,EAAEC,QAAQ,KAAK;QACjD;QACA,IAAID,UAAU,KAAK,cAAc,IAAIC,QAAQ,KAAK,KAAK,EAAE;UACvD,OAAO;YACLC,QAAQ,EAAEb,IAAI,CAACS,OAAO,CACpBK,SAAS,EACT,6BACF,CAAC;YACDC,IAAI,EAAE;UACR,CAAC;QACH;;QAEA;QACA,IAAIX,sBAAsB,EAAE;UAC1B,OAAOA,sBAAsB,CAACM,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;QAC9D;;QAEA;QACA,OAAOF,OAAO,CAACJ,cAAc,CAACI,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;MAC9D;IACF;EACF,CAAC;AACH;AAEAI,MAAM,CAACC,OAAO,GAAG;EAAEf;AAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["path","require","libPath","resolve","__dirname","withRorkMetro","config","originalResolveRequest","resolver","resolveRequest","transformer","babelTransformerPath","context","moduleName","platform","filePath","type","module","exports"],"sourceRoot":"../../../src","sources":["metro/index.js"],"mappings":";;AAAA,MAAMA,IAAI,GAAGC,OAAO,CAAC,MAAM,CAAC;;AAE5B;AACA;AACA;AACA;AACA;;AAEA,MAAMC,OAAO,GAAGF,IAAI,CAACG,OAAO,CAACC,SAAS,EAAE,gBAAgB,CAAC;AAEzD,SAASC,aAAaA,CAACC,MAAM,EAAE;EAC7B,MAAMC,sBAAsB,GAAGD,MAAM,CAACE,QAAQ,EAAEC,cAAc;EAE9D,OAAO;IACL,GAAGH,MAAM;IACTI,WAAW,EAAE;MACX,GAAGJ,MAAM,CAACI,WAAW;MACrBC,oBAAoB,EAAEV,OAAO,CAACE,OAAO,CACnC,wCACF;IACF,CAAC;IACDK,QAAQ,EAAE;MACR,GAAGF,MAAM,CAACE,QAAQ;MAClBC,cAAc,EAAEA,CAACG,OAAO,EAAEC,UAAU,EAAEC,QAAQ,KAAK;QACjD;QACA,IAAID,UAAU,KAAK,cAAc,IAAIC,QAAQ,KAAK,KAAK,EAAE;UACvD,OAAO;YACLC,QAAQ,EAAEf,IAAI,CAACG,OAAO,CAACD,OAAO,EAAE,0BAA0B,CAAC;YAC3Dc,IAAI,EAAE;UACR,CAAC;QACH;;QAEA;QACA,IAAIT,sBAAsB,EAAE;UAC1B,OAAOA,sBAAsB,CAACK,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;QAC9D;;QAEA;QACA,OAAOF,OAAO,CAACH,cAAc,CAACG,OAAO,EAAEC,UAAU,EAAEC,QAAQ,CAAC;MAC9D;IACF;EACF,CAAC;AACH;AAEAG,MAAM,CAACC,OAAO,GAAG;EAAEb;AAAc,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rork-ai/toolkit-sdk",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "toolkit-sdk",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -5,6 +5,9 @@ const path = require("path");
5
5
  * Automatically wraps _layout.tsx with Rork providers
6
6
  * and redirects expo-haptics to web polyfill on web platform
7
7
  */
8
+
9
+ const libPath = path.resolve(__dirname, "../lib/module/");
10
+
8
11
  function withRorkMetro(config) {
9
12
  const originalResolveRequest = config.resolver?.resolveRequest;
10
13
 
@@ -22,10 +25,7 @@ function withRorkMetro(config) {
22
25
  // Redirect expo-haptics to our web polyfill on web platform
23
26
  if (moduleName === "expo-haptics" && platform === "web") {
24
27
  return {
25
- filePath: path.resolve(
26
- __dirname,
27
- "../polyfills/haptics.web.ts",
28
- ),
28
+ filePath: path.resolve(libPath, "polyfills/haptics.web.ts"),
29
29
  type: "sourceFile",
30
30
  };
31
31
  }