mirror of https://github.com/zulip/zulip.git
dependencies: Remove mkdirp.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
efd7c06e30
commit
9c6e261861
|
@ -138,7 +138,6 @@
|
||||||
"eslint-plugin-unicorn": "^56.0.0",
|
"eslint-plugin-unicorn": "^56.0.0",
|
||||||
"jsdom": "^25.0.0",
|
"jsdom": "^25.0.0",
|
||||||
"minimist": "^1.2.6",
|
"minimist": "^1.2.6",
|
||||||
"mkdirp": "^3.0.1",
|
|
||||||
"mockdate": "^3.0.2",
|
"mockdate": "^3.0.2",
|
||||||
"nyc": "^17.0.0",
|
"nyc": "^17.0.0",
|
||||||
"openapi-examples-validator": "^5.0.0",
|
"openapi-examples-validator": "^5.0.0",
|
||||||
|
|
|
@ -425,9 +425,6 @@ importers:
|
||||||
minimist:
|
minimist:
|
||||||
specifier: ^1.2.6
|
specifier: ^1.2.6
|
||||||
version: 1.2.8
|
version: 1.2.8
|
||||||
mkdirp:
|
|
||||||
specifier: ^3.0.1
|
|
||||||
version: 3.0.1
|
|
||||||
mockdate:
|
mockdate:
|
||||||
specifier: ^3.0.2
|
specifier: ^3.0.2
|
||||||
version: 3.0.5
|
version: 3.0.5
|
||||||
|
@ -6247,11 +6244,6 @@ packages:
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
mkdirp@3.0.1:
|
|
||||||
resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
|
|
||||||
engines: {node: '>=10'}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
mockdate@3.0.5:
|
mockdate@3.0.5:
|
||||||
resolution: {integrity: sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==}
|
resolution: {integrity: sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==}
|
||||||
|
|
||||||
|
@ -16134,8 +16126,6 @@ snapshots:
|
||||||
|
|
||||||
mkdirp@1.0.4: {}
|
mkdirp@1.0.4: {}
|
||||||
|
|
||||||
mkdirp@3.0.1: {}
|
|
||||||
|
|
||||||
mockdate@3.0.5: {}
|
mockdate@3.0.5: {}
|
||||||
|
|
||||||
mouse-change@1.4.0:
|
mouse-change@1.4.0:
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
/* global $, CSS */
|
/* global $, CSS */
|
||||||
|
|
||||||
|
const fs = require("node:fs");
|
||||||
const path = require("node:path");
|
const path = require("node:path");
|
||||||
|
|
||||||
const {program} = require("commander");
|
const {program} = require("commander");
|
||||||
require("css.escape");
|
require("css.escape");
|
||||||
const mkdirp = require("mkdirp");
|
|
||||||
const puppeteer = require("puppeteer");
|
const puppeteer = require("puppeteer");
|
||||||
|
|
||||||
const options = {};
|
const options = {};
|
||||||
|
@ -76,7 +76,7 @@ async function run() {
|
||||||
clip.y += 5;
|
clip.y += 5;
|
||||||
const imagePath = options.imagePath;
|
const imagePath = options.imagePath;
|
||||||
const imageDir = path.dirname(imagePath);
|
const imageDir = path.dirname(imagePath);
|
||||||
mkdirp.sync(imageDir);
|
await fs.promises.mkdir(imageDir, {recursive: true});
|
||||||
await page.screenshot({path: imagePath, clip});
|
await page.screenshot({path: imagePath, clip});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
/* global $, CSS */
|
/* global $, CSS */
|
||||||
|
|
||||||
|
const fs = require("node:fs");
|
||||||
const path = require("node:path");
|
const path = require("node:path");
|
||||||
|
|
||||||
const {program} = require("commander");
|
const {program} = require("commander");
|
||||||
require("css.escape");
|
require("css.escape");
|
||||||
const mkdirp = require("mkdirp");
|
|
||||||
const puppeteer = require("puppeteer");
|
const puppeteer = require("puppeteer");
|
||||||
|
|
||||||
const options = {};
|
const options = {};
|
||||||
|
@ -93,7 +93,7 @@ async function run() {
|
||||||
clip.height -= 8;
|
clip.height -= 8;
|
||||||
const imagePath = options.imagePath;
|
const imagePath = options.imagePath;
|
||||||
const imageDir = path.dirname(imagePath);
|
const imageDir = path.dirname(imagePath);
|
||||||
mkdirp.sync(imageDir);
|
await fs.promises.mkdir(imageDir, {recursive: true});
|
||||||
await page.screenshot({path: imagePath, clip});
|
await page.screenshot({path: imagePath, clip});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 319 # Last bumped for message-link class
|
||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# minor version bump suffices.
|
||||||
|
|
||||||
PROVISION_VERSION = (299, 1) # bumped 2024-11-08 to patch svgicons2svgfont
|
PROVISION_VERSION = (300, 0) # bumped 2024-11-10 to remove mkdirp
|
||||||
|
|
Loading…
Reference in New Issue