@replit/protocol 0.2.72 → 0.2.73
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.
- package/gen.sh +3 -3
- package/main/index.d.ts +1 -0
- package/main/index.js +1 -1
- package/main/index.js.flow +2 -1
- package/package.json +1 -1
package/gen.sh
CHANGED
|
@@ -19,7 +19,7 @@ pbjs \
|
|
|
19
19
|
--root "${TARGET}" \
|
|
20
20
|
"$@"
|
|
21
21
|
|
|
22
|
-
if [ "$
|
|
22
|
+
if [ "$MODE" = "fix" ]; then
|
|
23
23
|
# TODO: Remove this hack
|
|
24
24
|
sed -i.bak 's@return $root;@$root.api = $root.replit.goval.api; return $root;@' "${TARGET}.js"
|
|
25
25
|
rm -f "${TARGET}.js.bak"
|
|
@@ -31,7 +31,7 @@ mv "${TARGET}.tmp.js" "${TARGET}.js"
|
|
|
31
31
|
|
|
32
32
|
pbts -o "${TARGET}.d.ts" "${TARGET}.js"
|
|
33
33
|
|
|
34
|
-
if [ "$
|
|
34
|
+
if [ "$MODE" = "fix" ]; then
|
|
35
35
|
# TODO: Remove this hack
|
|
36
36
|
echo 'import api = replit.goval.api; export { api };' >> "${TARGET}.d.ts"
|
|
37
37
|
fi
|
|
@@ -45,7 +45,7 @@ flowgen \
|
|
|
45
45
|
--add-flow-header \
|
|
46
46
|
--output-file "${TARGET}.js.flow" "${TARGET}.d.ts"
|
|
47
47
|
|
|
48
|
-
if [ "$
|
|
48
|
+
if [ "$MODE" = "fix" ]; then
|
|
49
49
|
sed -i.bak 's/declare var replit: typeof npm\$namespace\$replit;/export var replit = npm$namespace$replit;/' "${TARGET}.js.flow"
|
|
50
50
|
rm -f "${TARGET}.js.flow.bak"
|
|
51
51
|
|
package/main/index.d.ts
CHANGED
|
@@ -20467,3 +20467,4 @@ export namespace google {
|
|
|
20467
20467
|
}
|
|
20468
20468
|
}
|
|
20469
20469
|
}
|
|
20470
|
+
import api = replit.goval.api; export { api };
|
package/main/index.js
CHANGED
|
@@ -51077,5 +51077,5 @@
|
|
|
51077
51077
|
return google;
|
|
51078
51078
|
})();
|
|
51079
51079
|
|
|
51080
|
-
return $root;
|
|
51080
|
+
$root.api = $root.replit.goval.api; return $root;
|
|
51081
51081
|
});
|
package/main/index.js.flow
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as $protobuf from "protobufjs";
|
|
9
|
-
|
|
9
|
+
export var replit = npm$namespace$replit;
|
|
10
10
|
|
|
11
11
|
declare var npm$namespace$replit: {|
|
|
12
12
|
goval: typeof npm$namespace$replit$goval,
|
|
@@ -29092,3 +29092,4 @@ declare class google$protobuf$ListValue {
|
|
|
29092
29092
|
[k: string]: any,
|
|
29093
29093
|
|};
|
|
29094
29094
|
}
|
|
29095
|
+
export var api = npm$namespace$replit$goval$api;
|