New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@github/file-attachment-element

Package Overview
Dependencies
Maintainers
14
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/file-attachment-element - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

8

dist/attachment.js

@@ -43,3 +43,3 @@ export default class Attachment {

saved(attributes) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c;
if (this.state !== 'pending' && this.state !== 'saving') {

@@ -49,5 +49,5 @@ throw new Error(`Unexpected transition from ${this.state} to saved`);

this.state = 'saved';
this.id = (_b = (_a = attributes) === null || _a === void 0 ? void 0 : _a.id, (_b !== null && _b !== void 0 ? _b : null));
this.href = (_d = (_c = attributes) === null || _c === void 0 ? void 0 : _c.href, (_d !== null && _d !== void 0 ? _d : null));
this.name = (_f = (_e = attributes) === null || _e === void 0 ? void 0 : _e.name, (_f !== null && _f !== void 0 ? _f : null));
this.id = (_a = attributes === null || attributes === void 0 ? void 0 : attributes.id) !== null && _a !== void 0 ? _a : null;
this.href = (_b = attributes === null || attributes === void 0 ? void 0 : attributes.href) !== null && _b !== void 0 ? _b : null;
this.name = (_c = attributes === null || attributes === void 0 ? void 0 : attributes.name) !== null && _c !== void 0 ? _c : null;
}

@@ -54,0 +54,0 @@ isPending() {

@@ -43,3 +43,3 @@ class Attachment {

saved(attributes) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c;
if (this.state !== 'pending' && this.state !== 'saving') {

@@ -49,5 +49,5 @@ throw new Error(`Unexpected transition from ${this.state} to saved`);

this.state = 'saved';
this.id = (_b = (_a = attributes) === null || _a === void 0 ? void 0 : _a.id, (_b !== null && _b !== void 0 ? _b : null));
this.href = (_d = (_c = attributes) === null || _c === void 0 ? void 0 : _c.href, (_d !== null && _d !== void 0 ? _d : null));
this.name = (_f = (_e = attributes) === null || _e === void 0 ? void 0 : _e.name, (_f !== null && _f !== void 0 ? _f : null));
this.id = (_a = attributes === null || attributes === void 0 ? void 0 : attributes.id) !== null && _a !== void 0 ? _a : null;
this.href = (_b = attributes === null || attributes === void 0 ? void 0 : attributes.href) !== null && _b !== void 0 ? _b : null;
this.name = (_c = attributes === null || attributes === void 0 ? void 0 : attributes.name) !== null && _c !== void 0 ? _c : null;
}

@@ -54,0 +54,0 @@ isPending() {

@@ -49,3 +49,3 @@ (function (global, factory) {

saved(attributes) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c;
if (this.state !== 'pending' && this.state !== 'saving') {

@@ -55,5 +55,5 @@ throw new Error(`Unexpected transition from ${this.state} to saved`);

this.state = 'saved';
this.id = (_b = (_a = attributes) === null || _a === void 0 ? void 0 : _a.id, (_b !== null && _b !== void 0 ? _b : null));
this.href = (_d = (_c = attributes) === null || _c === void 0 ? void 0 : _c.href, (_d !== null && _d !== void 0 ? _d : null));
this.name = (_f = (_e = attributes) === null || _e === void 0 ? void 0 : _e.name, (_f !== null && _f !== void 0 ? _f : null));
this.id = (_a = attributes === null || attributes === void 0 ? void 0 : attributes.id) !== null && _a !== void 0 ? _a : null;
this.href = (_b = attributes === null || attributes === void 0 ? void 0 : attributes.href) !== null && _b !== void 0 ? _b : null;
this.name = (_c = attributes === null || attributes === void 0 ? void 0 : attributes.name) !== null && _c !== void 0 ? _c : null;
}

@@ -60,0 +60,0 @@ isPending() {

{
"name": "@github/file-attachment-element",
"version": "0.3.0",
"version": "1.0.0",
"description": "Attach files via drag and drop or file input.",

@@ -27,3 +27,3 @@ "main": "dist/index.umd.js",

"eslint": "^6.8.0",
"eslint-plugin-github": "^3.4.0",
"eslint-plugin-github": "^3.4.1",
"karma": "^4.4.1",

@@ -34,6 +34,6 @@ "karma-chai": "^0.1.0",

"karma-mocha-reporter": "^2.2.5",
"mocha": "^7.0.0",
"rollup": "^1.29.1",
"typescript": "^3.7.5"
"mocha": "^7.0.1",
"rollup": "^1.31.1",
"typescript": "^3.8.2"
}
}
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