Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eevee-core

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eevee-core - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/uploader.d.ts

1

lib/index.d.ts
export { publish } from './publish';
export { default as Uploader } from './uploader';

@@ -5,1 +5,3 @@ "use strict";

exports.publish = publish_1.publish;
var uploader_1 = require("./uploader");
exports.Uploader = uploader_1.default;

3

lib/publish.d.ts

@@ -0,1 +1,2 @@

import Uploader from './uploader';
export interface Resource {

@@ -13,2 +14,2 @@ javascripts: string[];

}
export declare const publish: (options: PublishOptionsV2) => Promise<any>;
export declare const publish: (options: PublishOptionsV2, uploaders?: Uploader[] | undefined) => Promise<any>;

@@ -114,18 +114,44 @@ "use strict";

}); };
exports.publish = function (options) { return __awaiter(_this, void 0, void 0, function () {
var env, token, result, pushNote, result;
return __generator(this, function (_a) {
switch (_a.label) {
exports.publish = function (options, uploaders) { return __awaiter(_this, void 0, void 0, function () {
var env, _a, _b, _i, i, uploader, err_1, token, result, pushNote, result;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
env = options.env;
if (!(uploaders && uploaders.length > 0)) return [3 /*break*/, 6];
_a = [];
for (_b in uploaders)
_a.push(_b);
_i = 0;
_c.label = 1;
case 1:
if (!(_i < _a.length)) return [3 /*break*/, 6];
i = _a[_i];
if (!uploaders[i]) return [3 /*break*/, 5];
uploader = uploaders[i];
_c.label = 2;
case 2:
_c.trys.push([2, 4, , 5]);
return [4 /*yield*/, uploader.start()];
case 3:
_c.sent();
return [3 /*break*/, 5];
case 4:
err_1 = _c.sent();
/* tslint:disable-line */ console.log(err_1);
return [3 /*break*/, 5];
case 5:
_i++;
return [3 /*break*/, 1];
case 6:
token = token_1.readPublishToken(env);
if (!token) return [3 /*break*/, 2];
if (!token) return [3 /*break*/, 8];
return [4 /*yield*/, getPromptData({ properties: __assign({}, pushNoteSchema.properties) })];
case 1:
result = _a.sent();
case 7:
result = _c.sent();
pushNote = result.pushNote;
return [2 /*return*/, sendResourceInfoToServer(options, { token: token, pushNote: pushNote })];
case 2: return [4 /*yield*/, getPromptData({ properties: __assign({}, tokenSchema.properties, pushNoteSchema.properties) })];
case 3:
result = _a.sent();
case 8: return [4 /*yield*/, getPromptData({ properties: __assign({}, tokenSchema.properties, pushNoteSchema.properties) })];
case 9:
result = _c.sent();
token_1.writePublishToken(result.token, env);

@@ -132,0 +158,0 @@ return [2 /*return*/, sendResourceInfoToServer(options, {

{
"name": "eevee-core",
"version": "0.0.2",
"version": "0.0.3",
"description": "eevee系统对接的核心逻辑",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc