diff --git a/package-lock.json b/package-lock.json index c22a27f3..16715257 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,20 +51,20 @@ "dev": true }, "@types/chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-1.7.0.tgz", + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/@types/chokidar/-/chokidar-1.7.3.tgz", "integrity": - "sha512-cSHtjB7Qgy6TvoYXVSRQJdsiUba62cwlAxvQ5mah2nfnuqcWcSZk1svZZu1JbWPWwQrwqvzDmjoozDhsKW6ewQ==", + "sha512-0gUr9F5yQY3fynp/HbUOCihob3rISG7HxE/9rivWrDY9UEZ+WPODYjtfccRlY1tuhZTyNtck68umiZ00ghxU5g==", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/enzyme": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/enzyme/-/enzyme-3.1.0.tgz", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/enzyme/-/enzyme-3.1.1.tgz", "integrity": - "sha512-AVqvXLZOTxyOzB9kE700qxIgT6hOiLi73C5gN9cDuCfh4IDpnkcEymLNZhT2m8IM+1rtoRkyGpezF7olR23PkQ==", + "sha512-OrGwhORtCPlb7YUEhSXUZd9DnMdheuj0qQzFwIv2YXSfn08qJMTjqWr4vFhmuvpDYE0A9IT8XibnFsQnSasvcw==", "dev": true, "requires": { "@types/cheerio": "0.22.3", @@ -72,35 +72,37 @@ } }, "@types/glob": { - "version": "5.0.30", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-5.0.30.tgz", - "integrity": "sha1-ECZAnFYlqGiQdGAoCNCCsoZ7ilE=", + "version": "5.0.33", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-5.0.33.tgz", + "integrity": + "sha512-BcD4yyWz+qmCggaYMSFF0Xn7GkO6tgwm3Fh9Gxk/kQmEU3Z7flQTnVlMyKBUNvXXNTCCyjqK4XT4/2hLd1gQ2A==", "dev": true, "requires": { - "@types/minimatch": "2.0.29", - "@types/node": "8.0.46" + "@types/minimatch": "3.0.1", + "@types/node": "8.0.47" } }, "@types/glob-stream": { - "version": "3.1.30", - "resolved": "https://registry.npmjs.org/@types/glob-stream/-/glob-stream-3.1.30.tgz", - "integrity": "sha1-uFOZC0Ckz+aoDsDS+t9o2AYPeLE=", + "version": "3.1.31", + "resolved": "https://registry.npmjs.org/@types/glob-stream/-/glob-stream-3.1.31.tgz", + "integrity": + "sha512-UxdJkuoXh48URR4gJSAQAXSTeo98KTsEalJc+7wNmWrkK+8/z/V71tddUYzxtM/nlDJEKHW5Fbyh02KuHwlytg==", "dev": true, "requires": { - "@types/glob": "5.0.30", - "@types/node": "8.0.46" + "@types/glob": "5.0.33", + "@types/node": "8.0.47" } }, "@types/gulp": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/gulp/-/gulp-4.0.4.tgz", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/gulp/-/gulp-4.0.5.tgz", "integrity": - "sha512-5hGc57snkSvGEkUQ42tcYAQmQrU9E41XQJNglP6FtDg7ou9QGyF1HfPZ5POGnrl7ee7uYq0Om0gh1bAmykxaxA==", + "sha512-nx1QjPTiRpvLfYsZ7MBu7bT6Cm7tAXyLbY0xbdx2IEMxCK2v2urIhJMQZHW0iV1TskM71Xl6p2uRRuWDbk+/7g==", "dev": true, "requires": { - "@types/chokidar": "1.7.0", + "@types/chokidar": "1.7.3", "@types/undertaker": "1.1.2", - "@types/vinyl-fs": "2.4.5" + "@types/vinyl-fs": "2.4.7" } }, "@types/gulp-autoprefixer": { @@ -110,7 +112,7 @@ "integrity": "sha1-XxWgBdVx+E9+r68TDE4S35ffCHM=", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/gulp-replace": { @@ -119,7 +121,7 @@ "integrity": "sha1-aYoPMJkPMxapODca0XEuTGyS/OA=", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/gulp-sass": { @@ -128,7 +130,7 @@ "integrity": "sha1-hvM6xJ/p7SiqaGVJ1tSMAiPZChQ=", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/gulp-sort": { @@ -139,7 +141,7 @@ "dev": true, "requires": { "@types/gulp-util": "3.0.31", - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/gulp-sourcemaps": { @@ -149,7 +151,7 @@ "sha512-kJD1byVNx+sdQlaBzZpSGeFH/4l99TXTY4XSGW+aRk27eOnVyk6VknXJpsb1Jk5E4ThKxZ8GYy6ais7MtprK1w==", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/gulp-util": { @@ -159,7 +161,7 @@ "dev": true, "requires": { "@types/chalk": "0.4.31", - "@types/node": "8.0.46", + "@types/node": "8.0.47", "@types/through2": "2.0.33", "@types/vinyl": "2.0.0" } @@ -171,10 +173,10 @@ "dev": true }, "@types/jest": { - "version": "21.1.4", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-21.1.4.tgz", + "version": "21.1.5", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-21.1.5.tgz", "integrity": - "sha512-CItNfCz6osAOxdhWMbUYbSz0iMGKuxDHu/0iaqnsGKQd98OY2J8EBtVQvozc3gXvPh2Y3uAjTGgqYv8rEj6qzA==", + "sha512-HwBIPK96DROvcB4EX5mA7L2nzhZ3sh8AcDSFODB4eG43S3q3d0+oo356J51qCxw9Bbn7G1DOmBmrw6vf+WiGTg==", "dev": true }, "@types/jquery": { @@ -185,16 +187,17 @@ "dev": true }, "@types/minimatch": { - "version": "2.0.29", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-2.0.29.tgz", - "integrity": "sha1-UALhT3Xi1x5WQoHfBDHIwbSio2o=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.1.tgz", + "integrity": + "sha512-rUO/jz10KRSyA9SHoCWQ8WX9BICyj5jZYu1/ucKEJKb4KzLZCKMURdYbadP157Q6Zl1x0vHsrU+Z/O0XlhYQDw==", "dev": true }, "@types/node": { - "version": "8.0.46", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.46.tgz", + "version": "8.0.47", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.47.tgz", "integrity": - "sha512-rRkP4kb5JYIfAoRKaDbcdPZBcTNOgzSApyzhPN9e6rhViSJAWQGlSXIX5gc75iR02jikhpzy3usu31wMHllfFw==", + "sha512-kOwL746WVvt/9Phf6/JgX/bsGQvbrK5iUgzyfwZNcKVFcjAUVSpF9HxevLTld2SG9aywYHOILj38arDdY1r/iQ==", "dev": true }, "@types/react": { @@ -211,7 +214,7 @@ "sha512-P+S4FYX49Rim9wSuKy+UoVgmWaUvl7fz4ut3GsWF2Fq93A0XpwYg+U0PTd+Zu8g7G2gPzOqWePgsElLxM4FJjQ==", "dev": true, "requires": { - "@types/node": "8.0.46", + "@types/node": "8.0.47", "@types/react": "16.0.18" } }, @@ -256,7 +259,7 @@ "integrity": "sha1-H/LoihAN+1sUDnu5h5HxGUQA0TE=", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/tinycolor2": { @@ -299,17 +302,18 @@ "integrity": "sha1-/SE79/QTbd4h/hiVUAsSwYb4wmg=", "dev": true, "requires": { - "@types/node": "8.0.46" + "@types/node": "8.0.47" } }, "@types/vinyl-fs": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@types/vinyl-fs/-/vinyl-fs-2.4.5.tgz", - "integrity": "sha1-c7ISuxg49f/xQ0Hj436VbwVgABs=", + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/@types/vinyl-fs/-/vinyl-fs-2.4.7.tgz", + "integrity": + "sha512-9g/M58+azoeebBVzPEdo2O0ScBrXXKu9CqBlZYXe/EVG+b1beLfkFVH7mKpZnJGQz95HR8VPu8QUAoqUqO9q4Q==", "dev": true, "requires": { - "@types/glob-stream": "3.1.30", - "@types/node": "8.0.46", + "@types/glob-stream": "3.1.31", + "@types/node": "8.0.47", "@types/vinyl": "2.0.0" } }, @@ -320,7 +324,7 @@ "sha512-gWVIAVaGapOPHOrjUQalUqdJWdUIn8w5gpKzz2L14megpB1euvq4HxvGusp9nhtkYGjD/sIg20Zse42b7+7BDw==", "dev": true, "requires": { - "@types/node": "8.0.46", + "@types/node": "8.0.47", "@types/tapable": "0.2.4", "@types/uglify-js": "2.6.29" } diff --git a/package.json b/package.json index bb322b84..47cfd982 100644 --- a/package.json +++ b/package.json @@ -35,17 +35,17 @@ } ], "devDependencies": { - "@types/enzyme": "^3.1.0", - "@types/gulp": "^4.0.4", + "@types/enzyme": "^3.1.1", + "@types/gulp": "^4.0.5", "@types/gulp-autoprefixer": "0.0.30", "@types/gulp-replace": "0.0.30", "@types/gulp-sass": "0.0.30", "@types/gulp-sort": "0.0.31", "@types/gulp-sourcemaps": "0.0.31", "@types/he": "^0.5.29", - "@types/jest": "^21.1.4", + "@types/jest": "^21.1.5", "@types/jquery": "^3.2.15", - "@types/node": "^8.0.46", + "@types/node": "^8.0.47", "@types/react": "^16.0.18", "@types/react-dom": "^16.0.2", "@types/react-motion": "^0.0.23", diff --git a/src/js/reference-list/api.ts b/src/js/reference-list/api.ts index 2ccd461a..0d23ded7 100644 --- a/src/js/reference-list/api.ts +++ b/src/js/reference-list/api.ts @@ -19,7 +19,7 @@ export async function getRemoteData(identifierList: string): Promise<[CSL.Data[] pmidList = [...pmidList, id]; break; case /^PMC\d+$/.test(id): - pmcidList = [...pmcidList, id]; + pmcidList = [...pmcidList, id.slice(3)]; break; default: errList = [...errList, id];