diff --git a/cpp/WKTJsiWorklet.h b/cpp/WKTJsiWorklet.h index 1c8b51c..66f978c 100644 --- a/cpp/WKTJsiWorklet.h +++ b/cpp/WKTJsiWorklet.h @@ -21,7 +21,7 @@ static const char *PropNameWorkletInitDataCode = "code"; static const char *PropNameJsThis = "jsThis"; static const char *PropNameWorkletInitDataLocation = "location"; -static const char *PropNameWorkletInitDataSourceMap = "__sourceMap"; +static const char *PropNameWorkletInitDataSourceMap = "sourceMap"; static const char *PropNameWorkletLocation = "__location"; static const char *PropNameWorkletAsString = "asString"; diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index c9d909e..7beb25d 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -266,7 +266,7 @@ PODS: - React-jsinspector (0.71.2) - React-logger (0.71.2): - glog - - react-native-worklets-core (1.3.0): + - react-native-worklets-core (1.3.2): - React - React-callinvoker - React-Core @@ -495,7 +495,7 @@ SPEC CHECKSUMS: React-jsiexecutor: c7e028406112db456ac3cf5720d266bc7bc20938 React-jsinspector: ea8101acf525ec08b2d87ddf0637d45f8e3b4148 React-logger: 97987f46779d8dd24656474ad0c43a5b459f31d6 - react-native-worklets-core: 7a50c0c14005cc57df8583eabd99ea3f467fa277 + react-native-worklets-core: ff4a4076ad86469e61ec8e39da2cb13c55da2385 React-perflogger: c7ccda3d1d1da837f7ff4e54e816022a6803ee87 React-RCTActionSheet: 01c125aebbad462a24228f68c584c7a921d6c28e React-RCTAnimation: 5277a9440acffc4a5b7baa6ae3880fe467277ae6 @@ -513,4 +513,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: fd46804085f978bcef56543628998164c7956884 -COCOAPODS: 1.14.3 +COCOAPODS: 1.12.1 diff --git a/src/plugin/index.js b/src/plugin/index.js index 4d6a886..df4f07a 100644 --- a/src/plugin/index.js +++ b/src/plugin/index.js @@ -517,7 +517,7 @@ function makeWorklet(t, fun, state) { if (sourceMapString) { initDataObjectExpression.properties.push( t.objectProperty( - t.identifier("__sourceMap"), + t.identifier("sourceMap"), t.stringLiteral(sourceMapString) ) ); diff --git a/src/types.ts b/src/types.ts index bf308a9..9072254 100644 --- a/src/types.ts +++ b/src/types.ts @@ -39,7 +39,7 @@ export type IWorklet = TFunc & { /** * Contains a source-code map of the Worklet to properly resolve stacktraces. */ - __sourceMap: string; + sourceMap: string; }; /** * Holds a unique compile-time hash for the code and closure of this Worklet. diff --git a/src/worklet.ts b/src/worklet.ts index 33218a9..8bb1bff 100644 --- a/src/worklet.ts +++ b/src/worklet.ts @@ -26,7 +26,7 @@ export function isWorklet( if (initData == null || typeof initData !== "object") return false; if ( - typeof initData.__sourceMap !== "string" || + typeof initData.sourceMap !== "string" || typeof initData.code !== "string" || typeof initData.location !== "string" )