@rork-ai/toolkit-sdk 0.2.34 → 0.2.36

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.
@@ -8,7 +8,7 @@ const path = require("path");
8
8
  * and redirects expo-haptics to web polyfill on web platform
9
9
  */
10
10
 
11
- const libPath = path.resolve(__dirname, "../lib/module/");
11
+ const libPath = path.resolve(__dirname, "../../lib/module/");
12
12
  function withRorkMetro(config) {
13
13
  const originalResolveRequest = config.resolver?.resolveRequest;
14
14
  return {
@@ -23,7 +23,7 @@ function withRorkMetro(config) {
23
23
  // Redirect expo-haptics to our web polyfill on web platform
24
24
  if (moduleName === "expo-haptics" && platform === "web") {
25
25
  return {
26
- filePath: path.resolve(libPath, "polyfills/haptics.web.ts"),
26
+ filePath: path.resolve(libPath, "polyfills/haptics.web.js"),
27
27
  type: "sourceFile"
28
28
  };
29
29
  }
@@ -1 +1 @@
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":[]}
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,mBAAmB,CAAC;AAE5D,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.34",
3
+ "version": "0.2.36",
4
4
  "description": "toolkit-sdk",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -6,7 +6,7 @@ const path = require("path");
6
6
  * and redirects expo-haptics to web polyfill on web platform
7
7
  */
8
8
 
9
- const libPath = path.resolve(__dirname, "../lib/module/");
9
+ const libPath = path.resolve(__dirname, "../../lib/module/");
10
10
 
11
11
  function withRorkMetro(config) {
12
12
  const originalResolveRequest = config.resolver?.resolveRequest;
@@ -25,7 +25,7 @@ function withRorkMetro(config) {
25
25
  // Redirect expo-haptics to our web polyfill on web platform
26
26
  if (moduleName === "expo-haptics" && platform === "web") {
27
27
  return {
28
- filePath: path.resolve(libPath, "polyfills/haptics.web.ts"),
28
+ filePath: path.resolve(libPath, "polyfills/haptics.web.js"),
29
29
  type: "sourceFile",
30
30
  };
31
31
  }