@teambit/component-sizer 0.0.13 → 0.0.14

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.
@@ -23,6 +23,7 @@ function componentSizerSchema(componentSizerMain) {
23
23
  type ComponentSizedFile {
24
24
  name: String
25
25
  size: Int
26
+ compressedSize: Int
26
27
  }
27
28
 
28
29
  type ComponentSize {
@@ -36,6 +37,10 @@ function componentSizerSchema(componentSizerMain) {
36
37
  totalAssets: Int
37
38
  # total size of the component files and assets
38
39
  total: Int
40
+
41
+ compressedTotalFiles: Int
42
+ compressedTotalAssets: Int
43
+ compressedTotal: Int
39
44
  }
40
45
 
41
46
  extend type Component {
@@ -1 +1 @@
1
- {"version":3,"sources":["component-sizer.graphql.ts"],"names":["componentSizerSchema","componentSizerMain","typeDefs","resolvers","Component","size","component","getComponentSize"],"mappings":";;;;;;;;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,SAASA,oBAAT,CAA8BC,kBAA9B,EAA8E;AACnF,SAAO;AACLC,IAAAA,QAAQ,EAAE,0BAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxBS;AAyBLC,IAAAA,SAAS,EAAE;AACTC,MAAAA,SAAS,EAAE;AACTC,QAAAA,IAAI,EAAGC,SAAD,IAA0B;AAC9B,iBAAOL,kBAAkB,CAACM,gBAAnB,CAAoCD,SAApC,CAAP;AACD;AAHQ;AADF;AAzBN,GAAP;AAiCD","sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport gql from 'graphql-tag';\n\nimport { ComponentSizerMain } from './component-sizer.main.runtime';\n\nexport function componentSizerSchema(componentSizerMain: ComponentSizerMain): Schema {\n return {\n typeDefs: gql`\n type ComponentSizedFile {\n name: String\n size: Int\n }\n\n type ComponentSize {\n # breakdown for the component files sizes\n files: [ComponentSizedFile]\n # breakdown for the component assets sizes\n assets: [ComponentSizedFile]\n # total size of the component files (like js and css) (without assets)\n totalFiles: Int\n # total size of the component assets (like pngs) (without files)\n totalAssets: Int\n # total size of the component files and assets\n total: Int\n }\n\n extend type Component {\n # size of the component bundle\n size: ComponentSize\n }\n `,\n resolvers: {\n Component: {\n size: (component: Component) => {\n return componentSizerMain.getComponentSize(component);\n },\n },\n },\n };\n}\n"]}
1
+ {"version":3,"sources":["component-sizer.graphql.ts"],"names":["componentSizerSchema","componentSizerMain","typeDefs","resolvers","Component","size","component","getComponentSize"],"mappings":";;;;;;;;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,SAASA,oBAAT,CAA8BC,kBAA9B,EAA8E;AACnF,SAAO;AACLC,IAAAA,QAAQ,EAAE,0BAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7BS;AA8BLC,IAAAA,SAAS,EAAE;AACTC,MAAAA,SAAS,EAAE;AACTC,QAAAA,IAAI,EAAGC,SAAD,IAA0B;AAC9B,iBAAOL,kBAAkB,CAACM,gBAAnB,CAAoCD,SAApC,CAAP;AACD;AAHQ;AADF;AA9BN,GAAP;AAsCD","sourcesContent":["import { Component } from '@teambit/component';\nimport { Schema } from '@teambit/graphql';\nimport gql from 'graphql-tag';\n\nimport { ComponentSizerMain } from './component-sizer.main.runtime';\n\nexport function componentSizerSchema(componentSizerMain: ComponentSizerMain): Schema {\n return {\n typeDefs: gql`\n type ComponentSizedFile {\n name: String\n size: Int\n compressedSize: Int\n }\n\n type ComponentSize {\n # breakdown for the component files sizes\n files: [ComponentSizedFile]\n # breakdown for the component assets sizes\n assets: [ComponentSizedFile]\n # total size of the component files (like js and css) (without assets)\n totalFiles: Int\n # total size of the component assets (like pngs) (without files)\n totalAssets: Int\n # total size of the component files and assets\n total: Int\n\n compressedTotalFiles: Int\n compressedTotalAssets: Int\n compressedTotal: Int\n }\n\n extend type Component {\n # size of the component bundle\n size: ComponentSize\n }\n `,\n resolvers: {\n Component: {\n size: (component: Component) => {\n return componentSizerMain.getComponentSize(component);\n },\n },\n },\n };\n}\n"]}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@teambit/component-sizer",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "homepage": "https://bit.dev/teambit/component/component-sizer",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-sizer",
9
- "version": "0.0.13"
9
+ "version": "0.0.14"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
13
13
  "graphql-tag": "2.12.1",
14
14
  "@babel/runtime": "7.12.18",
15
15
  "core-js": "^3.0.0",
16
- "@teambit/component": "0.0.640",
17
- "@teambit/graphql": "0.0.640",
18
- "@teambit/cli": "0.0.437",
19
- "@teambit/preview": "0.0.640"
16
+ "@teambit/component": "0.0.641",
17
+ "@teambit/graphql": "0.0.641",
18
+ "@teambit/cli": "0.0.438",
19
+ "@teambit/preview": "0.0.641"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/mocha": "5.2.7",
@@ -27,7 +27,7 @@
27
27
  "@types/node": "12.20.4"
28
28
  },
29
29
  "peerDependencies": {
30
- "@teambit/legacy": "1.0.213",
30
+ "@teambit/legacy": "1.0.216",
31
31
  "react-dom": "^16.8.0 || ^17.0.0",
32
32
  "react": "^16.8.0 || ^17.0.0"
33
33
  },
@@ -55,7 +55,7 @@
55
55
  "react": "-"
56
56
  },
57
57
  "peerDependencies": {
58
- "@teambit/legacy": "1.0.213",
58
+ "@teambit/legacy": "1.0.216",
59
59
  "react-dom": "^16.8.0 || ^17.0.0",
60
60
  "react": "^16.8.0 || ^17.0.0"
61
61
  }