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.
Files changed (74) hide show
  1. package/README.md +2 -4
  2. package/lib/AbstractClient.d.ts +65 -0
  3. package/lib/AbstractClient.d.ts.map +1 -0
  4. package/lib/AbstractClient.js +334 -0
  5. package/lib/AbstractClient.js.map +1 -0
  6. package/lib/RenderHost.d.ts +84 -0
  7. package/lib/RenderHost.d.ts.map +1 -0
  8. package/lib/RenderHost.js +11 -0
  9. package/lib/RenderHost.js.map +1 -0
  10. package/lib/client/FlipperServerClient.d.ts +10 -0
  11. package/lib/client/FlipperServerClient.d.ts.map +1 -0
  12. package/lib/client/FlipperServerClient.js +140 -0
  13. package/lib/client/FlipperServerClient.js.map +1 -0
  14. package/lib/devices/ArchivedDevice.d.ts +21 -0
  15. package/lib/devices/ArchivedDevice.d.ts.map +1 -0
  16. package/lib/devices/ArchivedDevice.js +49 -0
  17. package/lib/devices/ArchivedDevice.js.map +1 -0
  18. package/lib/devices/BaseDevice.d.ts +71 -0
  19. package/lib/devices/BaseDevice.d.ts.map +1 -0
  20. package/lib/devices/BaseDevice.js +245 -0
  21. package/lib/devices/BaseDevice.js.map +1 -0
  22. package/lib/devices/TestDevice.d.ts +8 -0
  23. package/lib/devices/TestDevice.d.ts.map +1 -0
  24. package/lib/devices/TestDevice.js +27 -0
  25. package/lib/devices/TestDevice.js.map +1 -0
  26. package/lib/fb/constants.d.ts +5 -0
  27. package/lib/fb/constants.d.ts.map +1 -0
  28. package/lib/fb/constants.js +6 -0
  29. package/lib/fb/constants.js.map +1 -0
  30. package/lib/fb-stubs/constants.d.ts +5 -0
  31. package/lib/fb-stubs/constants.d.ts.map +1 -0
  32. package/lib/fb-stubs/constants.js +6 -0
  33. package/lib/fb-stubs/constants.js.map +1 -0
  34. package/lib/flipperLibImplementation/downloadFile.d.ts +4 -0
  35. package/lib/flipperLibImplementation/downloadFile.d.ts.map +1 -0
  36. package/lib/flipperLibImplementation/downloadFile.js +40 -0
  37. package/lib/flipperLibImplementation/downloadFile.js.map +1 -0
  38. package/lib/flipperLibImplementation/index.d.ts +5 -0
  39. package/lib/flipperLibImplementation/index.d.ts.map +1 -0
  40. package/lib/flipperLibImplementation/index.js +61 -0
  41. package/lib/flipperLibImplementation/index.js.map +1 -0
  42. package/lib/globalObject.d.ts +16 -0
  43. package/lib/globalObject.d.ts.map +1 -0
  44. package/lib/globalObject.js +10 -0
  45. package/lib/globalObject.js.map +1 -0
  46. package/lib/index.d.ts +12 -0
  47. package/lib/index.d.ts.map +1 -0
  48. package/lib/index.js +39 -0
  49. package/lib/index.js.map +1 -0
  50. package/lib/plugins.d.ts +31 -0
  51. package/lib/plugins.d.ts.map +1 -0
  52. package/lib/plugins.js +181 -0
  53. package/lib/plugins.js.map +1 -0
  54. package/lib/utils/createServerAddOnControls.d.ts +3 -0
  55. package/lib/utils/createServerAddOnControls.d.ts.map +1 -0
  56. package/lib/utils/createServerAddOnControls.js +60 -0
  57. package/lib/utils/createServerAddOnControls.js.map +1 -0
  58. package/lib/utils/isPluginCompatible.d.ts +4 -0
  59. package/lib/utils/isPluginCompatible.d.ts.map +1 -0
  60. package/lib/utils/isPluginCompatible.js +18 -0
  61. package/lib/utils/isPluginCompatible.js.map +1 -0
  62. package/lib/utils/isPluginVersionMoreRecent.d.ts +4 -0
  63. package/lib/utils/isPluginVersionMoreRecent.d.ts.map +1 -0
  64. package/lib/utils/isPluginVersionMoreRecent.js +28 -0
  65. package/lib/utils/isPluginVersionMoreRecent.js.map +1 -0
  66. package/lib/utils/isProduction.d.ts +2 -0
  67. package/lib/utils/isProduction.d.ts.map +1 -0
  68. package/lib/utils/isProduction.js +8 -0
  69. package/lib/utils/isProduction.js.map +1 -0
  70. package/lib/utils/pluginKey.d.ts +5 -0
  71. package/lib/utils/pluginKey.d.ts.map +1 -0
  72. package/lib/utils/pluginKey.js +18 -0
  73. package/lib/utils/pluginKey.js.map +1 -0
  74. package/package.json +35 -3
@@ -0,0 +1,2 @@
1
+ export default function isProduction(): boolean;
2
+ //# sourceMappingURL=isProduction.d.ts.map
@@ -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.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
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
  }