Skip to content

Commit

Permalink
Merge pull request #174 from funktechno/dev
Browse files Browse the repository at this point in the history
2.1.2
  • Loading branch information
lastlink authored Aug 2, 2021
2 parents 09d63e6 + a34d9cc commit 59d67e2
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage

junit.xml
yarn.lock
.DS_Store
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 2.1.1 (2021-07-01)
## 2.1.2 (2021-08-02)

### Bug Fixes

* fix relative paths

## 2.1.1 (2021-07-30)

### Bug Fixes

Expand Down
23 changes: 23 additions & 0 deletions build/replace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
dist/TextHighlighter.js
lib/index.d.ts
replace ../src/Library - ./Library
*/

const replace = require('replace-in-file');
const options = {
files: ['./dist/TextHighlighter.js',
'./lib/*'],
from: /\.\.\/src\/Library/g,
to: './Library',
};

try {
const results = replace.sync(options);
console.log('Replacement results:', results);
}
catch (error) {
console.error('Error occurred:', error);
}
4 changes: 2 additions & 2 deletions dist/TextHighlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ exports.sortByDepth = sortByDepth;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextHighlighter = exports.highlightRange = exports.createWrapper = exports.optionsImpl = exports.removeHighlights = exports.serializeHighlights = exports.deserializeHighlights = exports.doHighlight = void 0;
var Library_1 = require("../src/Library");
var Library_1 = require("./Library");
Object.defineProperty(exports, "doHighlight", { enumerable: true, get: function () { return Library_1.doHighlight; } });
Object.defineProperty(exports, "deserializeHighlights", { enumerable: true, get: function () { return Library_1.deserializeHighlights; } });
Object.defineProperty(exports, "serializeHighlights", { enumerable: true, get: function () { return Library_1.serializeHighlights; } });
Expand All @@ -1091,7 +1091,7 @@ Object.defineProperty(exports, "TextHighlighter", { enumerable: true, get: funct
var types_1 = require("./types");
Object.defineProperty(exports, "optionsImpl", { enumerable: true, get: function () { return types_1.optionsImpl; } });

},{"../src/Library":2,"./TextHighlighter":3,"./types":6}],6:[function(require,module,exports){
},{"./Library":2,"./TextHighlighter":3,"./types":6}],6:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.paramsImp = exports.optionsImpl = exports.highlightI = void 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { doHighlight, deserializeHighlights, serializeHighlights, removeHighlights, createWrapper, highlightRange } from "../src/Library";
import { doHighlight, deserializeHighlights, serializeHighlights, removeHighlights, createWrapper, highlightRange } from "./Library";
import { TextHighlighter } from "./TextHighlighter";
import { optionsImpl } from "./types";
export { doHighlight, deserializeHighlights, serializeHighlights, removeHighlights, optionsImpl, createWrapper, highlightRange, TextHighlighter };
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextHighlighter = exports.highlightRange = exports.createWrapper = exports.optionsImpl = exports.removeHighlights = exports.serializeHighlights = exports.deserializeHighlights = exports.doHighlight = void 0;
var Library_1 = require("../src/Library");
var Library_1 = require("./Library");
Object.defineProperty(exports, "doHighlight", { enumerable: true, get: function () { return Library_1.doHighlight; } });
Object.defineProperty(exports, "deserializeHighlights", { enumerable: true, get: function () { return Library_1.deserializeHighlights; } });
Object.defineProperty(exports, "serializeHighlights", { enumerable: true, get: function () { return Library_1.serializeHighlights; } });
Expand Down
147 changes: 146 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@funktechno/texthighlighter",
"version": "2.1.1",
"version": "2.1.2",
"description": "a no dependency typescript supported tool for highlighting user selected content",
"main": "index.js",
"files": [
"lib/**/*"
],
"scripts": {
"build": "tsc",
"build:client": "browserify client/index.ts -p [ tsify --noImplicitAny ] > dist/TextHighlighter.js",
"build": "tsc && node build/replace",
"build:client": "browserify client/index.ts -p [ tsify --noImplicitAny ] > dist/TextHighlighter.js && node build/replace",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
Expand Down Expand Up @@ -54,12 +54,11 @@
"jest": "^26.1.0",
"jest-junit": "^12.0.0",
"jest-serial-runner": "^1.1.0",
"replace-in-file": "^6.2.0",
"ts-jest": "^26.1.1",
"ts-loader": "^8.0.9",
"tsify": "^5.0.2",
"typescript": "^4.0.5"
},
"dependencies": {
"typescript": "^4.0.5",
"ts-node": "^10.1.0"
},
"directories": {
Expand Down

0 comments on commit 59d67e2

Please sign in to comment.