Comparing version 1.3.4 to 1.3.5
@@ -19,3 +19,3 @@ import { load } from "cheerio"; | ||
: $(selector.select, context).text(); | ||
return text; | ||
return text || text.trim(); | ||
} | ||
@@ -27,3 +27,3 @@ case "attr": { | ||
const attr = el.attr(selector.attr); | ||
return attr.trim(); | ||
return attr; | ||
} | ||
@@ -30,0 +30,0 @@ case "count": { |
{ | ||
"name": "scrapq", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Lightweight Typescript library for scrapping html", | ||
@@ -13,3 +13,4 @@ "main": "./dist/index.js", | ||
"dist": "npm run test; npm run build; npm run build:web", | ||
"build": "tsc && npm run build:web && npm run build:dts", | ||
"build": "npm run build:node && npm run build:web && npm run build:dts", | ||
"build:node": "tsc", | ||
"build:web": "webpack --mode=production", | ||
@@ -16,0 +17,0 @@ "build:dts": "dts-bundle --name scrapq --main ./dist/index.d.ts" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2209909