~fd/staticmath-server

aa93fef6432e8dca9530c1537118b45859f713b4 — Ersei Saggi 3 months ago da3d91b
Update to KaTeX 0.16.9
5 files changed, 72 insertions(+), 12 deletions(-)

M flake.lock
M flake.nix
A package-lock.json
M package.json
M yarn.lock
M flake.lock => flake.lock +3 -3
@@ 2,11 2,11 @@
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 1691371061,
        "narHash": "sha256-BxPbPVlBIoneaXIBiHd0LVzA+L4nmvFCNBU6TmQAiMM=",
        "lastModified": 1707451808,
        "narHash": "sha256-UwDBUNHNRsYKFJzyTMVMTF5qS4xeJlWoeyJf+6vvamU=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "5068bc8fe943bde3c446326da8d0ca9c93d5a682",
        "rev": "442d407992384ed9c0e6d352de75b69079904e4e",
        "type": "github"
      },
      "original": {

M flake.nix => flake.nix +25 -3
@@ 4,7 4,29 @@
  outputs = { self, nixpkgs }:
    let pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in {
      devShell.x86_64-linux =
        pkgs.mkShell { buildInputs = [ pkgs.nodePackages.prettier pkgs.nodejs_20 pkgs.yarn ]; };
   };
      devShell.x86_64-linux = pkgs.mkShell {
        buildInputs = [
          pkgs.nodePackages.prettier
          pkgs.nodePackages_latest.nodejs
          pkgs.yarn
        ];
      };
      defaultPackage.x86_64-linux = pkgs.buildNpmPackage {
        name = "staticmath-server";

        # The packages required by the build process
        buildInputs = [ pkgs.nodePackages_latest.nodejs ];

        # The code sources for the package
        src = ./.;
        npmDepsHash = "sha256-BLa4L0rpKJ4BqwfI7lhwHeTuEc3KWRMWqv4r/qMdgco=";

        # How the output of the build phase
        # installPhase = ''
        #   mkdir $out
        #   npm run build
        #   cp dist/index.html $out
        # '';
      };
    };
}

A package-lock.json => package-lock.json +38 -0
@@ 0,0 1,38 @@
{
  "name": "staticmath-server",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "dependencies": {
        "katex": "^0.16.4"
      },
      "devDependencies": {}
    },
    "node_modules/commander": {
      "version": "8.3.0",
      "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
      "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
      "license": "MIT",
      "engines": {
        "node": ">= 12"
      }
    },
    "node_modules/katex": {
      "version": "0.16.8",
      "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.8.tgz",
      "integrity": "sha512-ftuDnJbcbOckGY11OO+zg3OofESlbR5DRl2cmN8HeWeeFIV7wTXvAOx8kEjZjobhA+9wh2fbKeO6cdcA9Mnovg==",
      "funding": [
        "https://opencollective.com/katex",
        "https://github.com/sponsors/katex"
      ],
      "license": "MIT",
      "dependencies": {
        "commander": "^8.3.0"
      },
      "bin": {
        "katex": "cli.js"
      }
    }
  }
}

M package.json => package.json +1 -1
@@ 1,6 1,6 @@
{
  "dependencies": {
    "katex": "^0.16.4"
    "katex": "^0.16.9"
  },
  "devDependencies": {}
}

M yarn.lock => yarn.lock +5 -5
@@ 4,12 4,12 @@

commander@^8.3.0:
  version "8.3.0"
  resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
  resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz"
  integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==

katex@^0.16.4:
  version "0.16.8"
  resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.8.tgz#89b453f40e8557f423f31a1009e9298dd99d5ceb"
  integrity sha512-ftuDnJbcbOckGY11OO+zg3OofESlbR5DRl2cmN8HeWeeFIV7wTXvAOx8kEjZjobhA+9wh2fbKeO6cdcA9Mnovg==
katex@^0.16.9:
  version "0.16.9"
  resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.9.tgz#bc62d8f7abfea6e181250f85a56e4ef292dcb1fa"
  integrity sha512-fsSYjWS0EEOwvy81j3vRA8TEAhQhKiqO+FQaKWp0m39qwOzHVBgAUBIXWj1pB+O2W3fIpNa6Y9KSKCVbfPhyAQ==
  dependencies:
    commander "^8.3.0"