vite-plugin-zephyr 0.0.15 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,13 +56,13 @@ function _zephyr_partial(options) {
56
56
  const packageJson = yield (0, zephyr_agent_1.getPackageJson)(path_to_execution_dir);
57
57
  (0, zephyr_edge_contract_1.ze_log)('Loaded Package JSON', packageJson);
58
58
  if (!packageJson)
59
- return (0, zephyr_edge_contract_1.ze_error)('ZE10010', 'package.json not found.');
59
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_PACKAGE_JSON_NOT_FOUND');
60
60
  const gitInfo = yield (0, zephyr_agent_1.getGitInfo)();
61
61
  (0, zephyr_edge_contract_1.ze_log)('Loaded Git Info', gitInfo);
62
62
  if (!gitInfo || !(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.org) || !(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.project))
63
- return (0, zephyr_edge_contract_1.ze_error)('ZE10016', 'Could not get git info. Can you confirm the current directory has initialized as a git repository?');
63
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_NO_GIT_INFO', 'Can you confirm the current directory has initialized as a git repository?');
64
64
  if (!(packageJson === null || packageJson === void 0 ? void 0 : packageJson.name))
65
- return (0, zephyr_edge_contract_1.ze_error)('ZE10013', 'package.json must have a name and version.');
65
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_PACKAGE_JSON_MUST_HAVE_NAME_VERSION', 'package.json must have a name and version.');
66
66
  const application_uid = (0, zephyr_edge_contract_1.createApplicationUID)({
67
67
  org: gitInfo.app.org,
68
68
  project: gitInfo.app.project,
@@ -73,20 +73,13 @@ function _zephyr_partial(options) {
73
73
  (0, zephyr_edge_contract_1.ze_log)('Got auth token, going to get application configuration and build id...');
74
74
  const [appConfig, buildId, hash_set] = yield Promise.all([
75
75
  (0, zephyr_agent_1.getApplicationConfiguration)({ application_uid }),
76
- (0, zephyr_agent_1.getBuildId)(application_uid).catch((err) => {
77
- logEvent({
78
- level: 'error',
79
- action: 'build:get-build-id:error',
80
- message: `error receiving build number for '${email}'\n
81
- ${err.message}\n`,
82
- });
83
- }),
76
+ (0, zephyr_agent_1.getBuildId)(application_uid),
84
77
  (0, zephyr_agent_1.get_hash_list)(application_uid),
85
78
  ]);
86
79
  const { username, email, EDGE_URL } = appConfig;
87
80
  (0, zephyr_edge_contract_1.ze_log)('Got application configuration', { username, email, EDGE_URL });
88
81
  if (!buildId)
89
- return (0, zephyr_edge_contract_1.ze_error)('ZE10019', 'Could not get build id.');
82
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_GET_BUILD_ID');
90
83
  const pluginOptions = {
91
84
  pluginName: 'rollup-plugin-zephyr',
92
85
  application_uid,
@@ -98,7 +91,7 @@ function _zephyr_partial(options) {
98
91
  org: gitInfo.app.org,
99
92
  project: gitInfo.app.project,
100
93
  },
101
- git: gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.git,
94
+ git: gitInfo.git,
102
95
  isCI,
103
96
  zeConfig: {
104
97
  user: username,
@@ -112,11 +105,8 @@ function _zephyr_partial(options) {
112
105
  logEvent({
113
106
  level: 'info',
114
107
  action: 'build:info:user',
115
- message: `Hi ${(0, zephyr_edge_contract_1.cyanBright)(username)}!`,
116
- }, {
117
- level: 'info',
118
- action: 'build:info:id',
119
- message: `Building to ${(0, zephyr_edge_contract_1.blackBright)(application_uid)}${(0, zephyr_edge_contract_1.yellow)(`#${buildId}`)}`,
108
+ ignore: true,
109
+ message: `Hi ${(0, zephyr_edge_contract_1.cyanBright)(username)}!\n${(0, zephyr_edge_contract_1.white)(application_uid)}${(0, zephyr_edge_contract_1.yellow)(`#${buildId}`)}\n`,
120
110
  });
121
111
  const zeStart = Date.now();
122
112
  const extractBuffer = (asset) => {
@@ -151,7 +141,7 @@ function _zephyr_partial(options) {
151
141
  username,
152
142
  email,
153
143
  });
154
- yield (0, zephyr_agent_1.zeUploadSnapshot)({ pluginOptions, snapshot, appConfig }).catch((err) => (0, zephyr_edge_contract_1.ze_error)('ZE10018', 'Failed to upload snapshot.', err));
144
+ yield (0, zephyr_agent_1.zeUploadSnapshot)({ pluginOptions, snapshot, appConfig }).catch((err) => (0, zephyr_edge_contract_1.ze_error)('ERR_FAILED_UPLOAD_SNAPSHOTS', 'Failed to upload snapshot.', err));
155
145
  const missingAssets = (0, zephyr_agent_1.get_missing_assets)({ assetsMap, hash_set });
156
146
  const assetsUploadSuccess = yield (0, zephyr_agent_1.zeUploadAssets)(pluginOptions, {
157
147
  missingAssets,
@@ -159,7 +149,7 @@ function _zephyr_partial(options) {
159
149
  count: Object.keys(assets).length,
160
150
  });
161
151
  if (!assetsUploadSuccess)
162
- return (0, zephyr_edge_contract_1.ze_error)('ZE10017', 'Failed to upload assets.', assetsUploadSuccess);
152
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_FAILED_UPLOAD_ASSETS', assetsUploadSuccess);
163
153
  if (missingAssets.length) {
164
154
  yield (0, zephyr_agent_1.update_hash_list)(application_uid, assetsMap);
165
155
  }
@@ -167,7 +157,7 @@ function _zephyr_partial(options) {
167
157
  logEvent({
168
158
  level: 'info',
169
159
  action: 'build:deploy:done',
170
- message: `Build deployed in ${(0, zephyr_edge_contract_1.yellow)(`${Date.now() - zeStart}`)}ms`,
160
+ message: `Deployment took ${(0, zephyr_edge_contract_1.yellow)(`${Date.now() - zeStart}`)}ms`,
171
161
  });
172
162
  });
173
163
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-zephyr-partial.js","sourceRoot":"","sources":["../../src/lib/vite-plugin-zephyr-partial.ts"],"names":[],"mappings":";;;;AAAA,8BAA8B;AAG9B,+CAcsB;AACtB,+DAW8B;AAC9B,6EAA0E;AAC1E,uDAAoD;AAGpD,SAAgB,iBAAiB;IAC/B,IAAI,MAAM,GAAiB,EAAE,CAAC;IAC9B,MAAM,qBAAqB,GAAG,EAA2B,CAAC;IAE1D,OAAO;QACL,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,MAAM;QACf,cAAc,EAA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EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3E,IAAA,+BAAQ,EAAC,6BAA6B,EAAE,4BAA4B,EAAE,GAAG,CAAC,CAC3E,CAAC;QAEF,MAAM,aAAa,GAAG,IAAA,iCAAkB,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAElE,MAAM,mBAAmB,GAAG,MAAM,IAAA,6BAAc,EAAC,aAAa,EAAE;YAC9D,aAAa;YACb,SAAS;YACT,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;SAClC,CAAC,CAAC;QAEH,IAAI,CAAC,mBAAmB;YAAE,OAAO,IAAA,+BAAQ,EAAC,0BAA0B,EAAE,mBAAmB,CAAC,CAAC;QAE3F,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;YACzB,MAAM,IAAA,+BAAgB,EAAC,eAAe,EAAE,SAAS,CAAC,CAAC;QACrD,CAAC;QAED,MAAM,IAAA,0CAAmB,EAAC,eAAe,EAAE,MAAA,qBAAqB,CAAC,UAAU,mCAAI,SAAS,EAAE,SAAS,CAAC,CAAC;QAErG,QAAQ,CAAC;YACP,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,mBAAmB;YAC3B,OAAO,EAAE,mBAAmB,IAAA,6BAAM,EAAC,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI;SAClE,CAAC,CAAC;IACL,CAAC;CAAA"}
@@ -54,13 +54,13 @@ function _zephyr(options) {
54
54
  const packageJson = yield (0, zephyr_agent_1.getPackageJson)(path_to_execution_dir);
55
55
  (0, zephyr_edge_contract_1.ze_log)('Loaded package.json.', packageJson);
56
56
  if (!packageJson)
57
- return (0, zephyr_edge_contract_1.ze_error)('ZE10010', 'package.json not found.');
57
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_PACKAGE_JSON_NOT_FOUND');
58
58
  const gitInfo = yield (0, zephyr_agent_1.getGitInfo)();
59
59
  (0, zephyr_edge_contract_1.ze_log)('Loaded Git Info.', gitInfo);
60
60
  if (!gitInfo || !(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.org) || !(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.project))
61
- return (0, zephyr_edge_contract_1.ze_error)('ZE10016', 'Could not get git info. \n Can you confirm this directory has initialized as a git repository? ');
61
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_NO_GIT_INFO', 'Could not get git info. \n Can you confirm this directory has initialized as a git repository? ');
62
62
  if (!(packageJson === null || packageJson === void 0 ? void 0 : packageJson.name))
63
- return (0, zephyr_edge_contract_1.ze_error)('ZE10013', 'package.json must have a name and version.');
63
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_PACKAGE_JSON_MUST_HAVE_NAME_VERSION');
64
64
  const application_uid = (0, zephyr_edge_contract_1.createApplicationUID)({
65
65
  org: gitInfo.app.org,
66
66
  project: gitInfo.app.project,
@@ -71,20 +71,13 @@ function _zephyr(options) {
71
71
  (0, zephyr_edge_contract_1.ze_log)('Got auth token, going to get application configuration and build id...');
72
72
  const [appConfig, buildId, hash_set] = yield Promise.all([
73
73
  (0, zephyr_agent_1.getApplicationConfiguration)({ application_uid }),
74
- (0, zephyr_agent_1.getBuildId)(application_uid).catch((err) => {
75
- logEvent({
76
- level: 'error',
77
- action: 'build:get-build-id:error',
78
- message: `error receiving build number for '${email}'\n
79
- ${err.message}\n`,
80
- });
81
- }),
74
+ (0, zephyr_agent_1.getBuildId)(application_uid),
82
75
  (0, zephyr_agent_1.get_hash_list)(application_uid),
83
76
  ]);
84
77
  const { username, email, EDGE_URL } = appConfig;
85
78
  (0, zephyr_edge_contract_1.ze_log)('Got application configuration', { username, email, EDGE_URL });
86
79
  if (!buildId)
87
- return (0, zephyr_edge_contract_1.ze_error)('ZE10019', 'Could not get build id.');
80
+ return (0, zephyr_edge_contract_1.ze_error)('ERR_GET_BUILD_ID');
88
81
  const pluginOptions = {
89
82
  pluginName: 'rollup-plugin-zephyr',
90
83
  application_uid,
@@ -110,11 +103,8 @@ function _zephyr(options) {
110
103
  logEvent({
111
104
  level: 'info',
112
105
  action: 'build:info:user',
113
- message: `Hi ${(0, zephyr_edge_contract_1.cyanBright)(username)}!`,
114
- }, {
115
- level: 'info',
116
- action: 'build:info:id',
117
- message: `Building to ${(0, zephyr_edge_contract_1.blackBright)(application_uid)}${(0, zephyr_edge_contract_1.yellow)(`#${buildId}`)}`,
106
+ ignore: true,
107
+ message: `Hi ${(0, zephyr_edge_contract_1.cyanBright)(username)}!\n${(0, zephyr_edge_contract_1.white)(application_uid)}${(0, zephyr_edge_contract_1.yellow)(`#${buildId}`)}\n`,
118
108
  });
119
109
  const zeStart = Date.now();
120
110
  const partialAssetMap = yield (0, zephyr_edge_contract_1.getPartialAssetMap)(application_uid);
@@ -134,7 +124,6 @@ function _zephyr(options) {
134
124
  getDashData: zephyr_agent_1.zeGetDashData,
135
125
  appConfig,
136
126
  zeStart,
137
- uploadConfig: appConfig.uploadConfig,
138
127
  });
139
128
  });
140
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/vite-plugin-zephyr.ts"],"names":[],"mappings":";;;;AAAA,8BAA8B;AAG9B,+CAYsB;AACtB,+DAW8B;AAC9B,uDAAoD;AACpD,+DAA4D;AAU5D,SAAgB,UAAU;IACxB,sBAAsB;IACtB,IAAI,MAAM,GAAiB,EAAE,CAAC;IAE9B,MAAM,qBAAqB,GAAG,EAAkC,CAAC;IAEjE,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,CAAO,MAAsB,EAAE,EAAE;YAC/C,MAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE;gBACnC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,MAAM,EAAE,MAAM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AAC,CAAC;QAEnF,MAAM,SAAS,GAAG,IAAA,6BAAc,EAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,IAAA,iCAAkB,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAElE,MAAM,IAAA,qBAAM,EAAC;YACX,aAAa;YACb,MAAM,EAAE;gBACN,SAAS;gBACT,aAAa;gBACb,UAAU,EAAE,qBAAqB,CAAC,MAAM;gBACxC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;aAClC;YACD,0EAA0E;YAC1E,WAAW,EAAE,4BAAa;YAC1B,SAAS;YACT,OAAO;SACR,CAAC,CAAC;IACL,CAAC;CAAA;AAED,SAAS,aAAa,CAAC,KAAgC;IACrD,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClG;YACE,OAAO,KAAK,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,KAAgC;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-zephyr",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-zephyr",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,8 @@
8
8
  "vite": "^5",
9
9
  "rollup": "^4",
10
10
  "is-ci": "^3",
11
- "zephyr-edge-contract": "0.0.15",
12
- "zephyr-agent": "0.0.15"
11
+ "zephyr-edge-contract": "0.0.17",
12
+ "zephyr-agent": "0.0.17"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/is-ci": "^3.0.4"