@github/file-attachment-element
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -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" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
29899