Welcome to mirror list, hosted at ThFree Co, Russian Federation.

diff_worker.js « diff « lib « ide « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e74c40463307eab52e1e5e4e89317a0382de6a09 (plain)
1
2
3
4
5
6
7
8
9
10
import { computeDiff } from './diff';

self.addEventListener('message', (e) => {
  const data = e.data;

  self.postMessage({
    path: data.path,
    changes: computeDiff(data.originalContent, data.newContent),
  });
});