flipper-frontend-core 0.0.1-security → 0.1.0
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/README.md +2 -4
- package/lib/AbstractClient.d.ts +65 -0
- package/lib/AbstractClient.d.ts.map +1 -0
- package/lib/AbstractClient.js +334 -0
- package/lib/AbstractClient.js.map +1 -0
- package/lib/RenderHost.d.ts +84 -0
- package/lib/RenderHost.d.ts.map +1 -0
- package/lib/RenderHost.js +11 -0
- package/lib/RenderHost.js.map +1 -0
- package/lib/client/FlipperServerClient.d.ts +10 -0
- package/lib/client/FlipperServerClient.d.ts.map +1 -0
- package/lib/client/FlipperServerClient.js +140 -0
- package/lib/client/FlipperServerClient.js.map +1 -0
- package/lib/devices/ArchivedDevice.d.ts +21 -0
- package/lib/devices/ArchivedDevice.d.ts.map +1 -0
- package/lib/devices/ArchivedDevice.js +49 -0
- package/lib/devices/ArchivedDevice.js.map +1 -0
- package/lib/devices/BaseDevice.d.ts +71 -0
- package/lib/devices/BaseDevice.d.ts.map +1 -0
- package/lib/devices/BaseDevice.js +245 -0
- package/lib/devices/BaseDevice.js.map +1 -0
- package/lib/devices/TestDevice.d.ts +8 -0
- package/lib/devices/TestDevice.d.ts.map +1 -0
- package/lib/devices/TestDevice.js +27 -0
- package/lib/devices/TestDevice.js.map +1 -0
- package/lib/fb/constants.d.ts +5 -0
- package/lib/fb/constants.d.ts.map +1 -0
- package/lib/fb/constants.js +6 -0
- package/lib/fb/constants.js.map +1 -0
- package/lib/fb-stubs/constants.d.ts +5 -0
- package/lib/fb-stubs/constants.d.ts.map +1 -0
- package/lib/fb-stubs/constants.js +6 -0
- package/lib/fb-stubs/constants.js.map +1 -0
- package/lib/flipperLibImplementation/downloadFile.d.ts +4 -0
- package/lib/flipperLibImplementation/downloadFile.d.ts.map +1 -0
- package/lib/flipperLibImplementation/downloadFile.js +40 -0
- package/lib/flipperLibImplementation/downloadFile.js.map +1 -0
- package/lib/flipperLibImplementation/index.d.ts +5 -0
- package/lib/flipperLibImplementation/index.d.ts.map +1 -0
- package/lib/flipperLibImplementation/index.js +61 -0
- package/lib/flipperLibImplementation/index.js.map +1 -0
- package/lib/globalObject.d.ts +16 -0
- package/lib/globalObject.d.ts.map +1 -0
- package/lib/globalObject.js +10 -0
- package/lib/globalObject.js.map +1 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +39 -0
- package/lib/index.js.map +1 -0
- package/lib/plugins.d.ts +31 -0
- package/lib/plugins.d.ts.map +1 -0
- package/lib/plugins.js +181 -0
- package/lib/plugins.js.map +1 -0
- package/lib/utils/createServerAddOnControls.d.ts +3 -0
- package/lib/utils/createServerAddOnControls.d.ts.map +1 -0
- package/lib/utils/createServerAddOnControls.js +60 -0
- package/lib/utils/createServerAddOnControls.js.map +1 -0
- package/lib/utils/isPluginCompatible.d.ts +4 -0
- package/lib/utils/isPluginCompatible.d.ts.map +1 -0
- package/lib/utils/isPluginCompatible.js +18 -0
- package/lib/utils/isPluginCompatible.js.map +1 -0
- package/lib/utils/isPluginVersionMoreRecent.d.ts +4 -0
- package/lib/utils/isPluginVersionMoreRecent.d.ts.map +1 -0
- package/lib/utils/isPluginVersionMoreRecent.js +28 -0
- package/lib/utils/isPluginVersionMoreRecent.js.map +1 -0
- package/lib/utils/isProduction.d.ts +2 -0
- package/lib/utils/isProduction.d.ts.map +1 -0
- package/lib/utils/isProduction.js +8 -0
- package/lib/utils/isProduction.js.map +1 -0
- package/lib/utils/pluginKey.d.ts +5 -0
- package/lib/utils/pluginKey.d.ts.map +1 -0
- package/lib/utils/pluginKey.js +18 -0
- package/lib/utils/pluginKey.js.map +1 -0
- package/package.json +35 -3
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isProduction.d.ts","sourceRoot":"","sources":["../../src/utils/isProduction.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,YAAY,YAEnC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const RenderHost_1 = require("../RenderHost");
|
4
|
+
function isProduction() {
|
5
|
+
return (0, RenderHost_1.getRenderHostInstance)().serverConfig.environmentInfo.isProduction;
|
6
|
+
}
|
7
|
+
exports.default = isProduction;
|
8
|
+
//# sourceMappingURL=isProduction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isProduction.js","sourceRoot":"","sources":["../../src/utils/isProduction.tsx"],"names":[],"mappings":";;AASA,8CAAoD;AAEpD,SAAwB,YAAY;IAClC,OAAO,IAAA,kCAAqB,GAAE,CAAC,YAAY,CAAC,eAAe,CAAC,YAAY,CAAC;AAC3E,CAAC;AAFD,+BAEC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare function getPluginKey(selectedAppId: string | null | undefined, baseDevice: {
|
2
|
+
serial: string;
|
3
|
+
} | null | undefined, pluginID: string): string;
|
4
|
+
export declare const pluginKey: (serial: string, pluginName: string) => string;
|
5
|
+
//# sourceMappingURL=pluginKey.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pluginKey.d.ts","sourceRoot":"","sources":["../../src/utils/pluginKey.tsx"],"names":[],"mappings":"AASA,wBAAgB,YAAY,CAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACxC,UAAU,EAAE;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,GAAG,IAAI,GAAG,SAAS,EAC/C,QAAQ,EAAE,MAAM,GACf,MAAM,CASR;AAED,eAAO,MAAM,SAAS,WAAY,MAAM,cAAc,MAAM,KAAG,MAE9D,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.pluginKey = exports.getPluginKey = void 0;
|
4
|
+
function getPluginKey(selectedAppId, baseDevice, pluginID) {
|
5
|
+
if (selectedAppId) {
|
6
|
+
return `${selectedAppId}#${pluginID}`;
|
7
|
+
}
|
8
|
+
if (baseDevice) {
|
9
|
+
return `${baseDevice.serial}#${pluginID}`;
|
10
|
+
}
|
11
|
+
return `unknown#${pluginID}`;
|
12
|
+
}
|
13
|
+
exports.getPluginKey = getPluginKey;
|
14
|
+
const pluginKey = (serial, pluginName) => {
|
15
|
+
return `${serial}#${pluginName}`;
|
16
|
+
};
|
17
|
+
exports.pluginKey = pluginKey;
|
18
|
+
//# sourceMappingURL=pluginKey.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pluginKey.js","sourceRoot":"","sources":["../../src/utils/pluginKey.tsx"],"names":[],"mappings":";;;AASA,SAAgB,YAAY,CAC1B,aAAwC,EACxC,UAA+C,EAC/C,QAAgB;IAEhB,IAAI,aAAa,EAAE;QACjB,OAAO,GAAG,aAAa,IAAI,QAAQ,EAAE,CAAC;KACvC;IACD,IAAI,UAAU,EAAE;QAEd,OAAO,GAAG,UAAU,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;KAC3C;IACD,OAAO,WAAW,QAAQ,EAAE,CAAC;AAC/B,CAAC;AAbD,oCAaC;AAEM,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAU,EAAE;IACtE,OAAO,GAAG,MAAM,IAAI,UAAU,EAAE,CAAC;AACnC,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB"}
|
package/package.json
CHANGED
@@ -1,6 +1,38 @@
|
|
1
1
|
{
|
2
2
|
"name": "flipper-frontend-core",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"repository": "
|
3
|
+
"version": "0.1.0",
|
4
|
+
"description": "Exposes core functionality for Flipper frontends: Flipper Electron, Flipper Browser UI, Flipper Server Companion.",
|
5
|
+
"repository": "facebook/flipper",
|
6
|
+
"main": "lib/index.js",
|
7
|
+
"flipperBundlerEntry": "src",
|
8
|
+
"types": "lib/index.d.ts",
|
9
|
+
"license": "MIT",
|
10
|
+
"bugs": "https://github.com/facebook/flipper/issues",
|
11
|
+
"dependencies": {
|
12
|
+
"eventemitter3": "^4.0.7",
|
13
|
+
"flipper-common": "0.0.0",
|
14
|
+
"flipper-plugin-core": "0.0.0",
|
15
|
+
"immer": "^9.0.12",
|
16
|
+
"js-base64": "^3.7.2",
|
17
|
+
"p-map": "^4.0.0",
|
18
|
+
"reconnecting-websocket": "^4.4.0",
|
19
|
+
"semver": "^7.3.7"
|
20
|
+
},
|
21
|
+
"devDependencies": {
|
22
|
+
"flipper-test-utils": "0.0.0"
|
23
|
+
},
|
24
|
+
"peerDependencies": {},
|
25
|
+
"scripts": {
|
26
|
+
"reset": "rimraf lib *.tsbuildinfo",
|
27
|
+
"build": "tsc -b",
|
28
|
+
"prepack": "yarn reset && yarn build"
|
29
|
+
},
|
30
|
+
"files": [
|
31
|
+
"lib/**/*"
|
32
|
+
],
|
33
|
+
"homepage": "https://github.com/facebook/flipper",
|
34
|
+
"keywords": [
|
35
|
+
"Flipper"
|
36
|
+
],
|
37
|
+
"author": "Facebook, Inc"
|
6
38
|
}
|