-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AG-35801 Fix last position in position provider
Merge in ADGUARD-FILTERS/tsurlfilter from fix/AG-35801 to master Squashed commit of the following: commit 8048333 Author: scripthunter7 <[email protected]> Date: Tue Sep 10 11:50:59 2024 +0200 fix nit commit bd365fb Author: scripthunter7 <[email protected]> Date: Mon Sep 9 19:07:07 2024 +0200 fix commit cffdc60 Author: scripthunter7 <[email protected]> Date: Mon Sep 9 18:55:57 2024 +0200 smoke tests commit 606eec5 Author: scripthunter7 <[email protected]> Date: Mon Sep 9 18:42:34 2024 +0200 finalize builds commit 23fc68f Author: scripthunter7 <[email protected]> Date: Mon Sep 9 15:33:17 2024 +0200 remove browser builds commit ea9dda1 Author: scripthunter7 <[email protected]> Date: Mon Sep 9 15:33:00 2024 +0200 update exports commit 9718065 Author: scripthunter7 <[email protected]> Date: Mon Sep 9 10:08:51 2024 +0200 changelog commit 87704d0 Author: scripthunter7 <[email protected]> Date: Mon Sep 9 10:06:11 2024 +0200 fix nits commit 9b64888 Author: scripthunter7 <[email protected]> Date: Fri Sep 6 18:44:47 2024 +0200 fix nit commit 559b996 Author: scripthunter7 <[email protected]> Date: Fri Sep 6 18:13:12 2024 +0200 fix position provider
- Loading branch information
1 parent
eade72c
commit b2df551
Showing
24 changed files
with
408 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
dist | ||
dist | ||
coverage | ||
test/smoke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ node_modules | |
.eslintcache | ||
|
||
# Release file for npm. | ||
agtree.tgz | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const { RuleParser } = require('@adguard/agtree'); | ||
const { ok } = require('assert'); | ||
|
||
const ruleNode = RuleParser.parse('||example.com^'); | ||
|
||
ok(ruleNode); | ||
|
||
console.log('Smoke test passed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "cjs", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"author": "Adguard Software Ltd.", | ||
"scripts": { | ||
"start": "node index.js", | ||
"test": "./test.sh" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit on error | ||
|
||
# pack @adguard/agtree | ||
curr_path="test/smoke/cjs" | ||
agtree="agtree.tgz" | ||
nm_path="node_modules" | ||
|
||
# Define cleanup function | ||
cleanup() { | ||
echo "Cleaning up..." | ||
rm -f $agtree && rm -rf $nm_path | ||
echo "Cleanup complete" | ||
} | ||
|
||
# Set trap to execute the cleanup function on script exit | ||
trap cleanup EXIT | ||
|
||
(cd ../../.. && pnpm pack && mv adguard-agtree-*.tgz "$curr_path/$agtree") | ||
|
||
# unzip to @adguard/tsurlfilter to node_modules | ||
agtree_node_modules=$nm_path"/@adguard/agtree" | ||
mkdir -p $agtree_node_modules | ||
tar -xzf $agtree --strip-components=1 -C $agtree_node_modules | ||
|
||
pnpm start | ||
echo "Test successfully built." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { RuleParser } from '@adguard/agtree'; | ||
import { ok } from 'assert'; | ||
|
||
const ruleNode = RuleParser.parse('||example.com^'); | ||
|
||
ok(ruleNode); | ||
|
||
console.log('Smoke test passed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "esm", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"author": "Adguard Software Ltd.", | ||
"type": "module", | ||
"scripts": { | ||
"start": "node index.js", | ||
"test": "./test.sh" | ||
} | ||
} |
Oops, something went wrong.