Compare commits

...

7 Commits

Author SHA1 Message Date
bdf55a19d9 2.0.13 2020-03-13 11:46:21 +00:00
cd1f68f55e fix(core): update 2020-03-13 11:46:20 +00:00
f2bd7145b3 2.0.12 2020-03-08 15:14:25 +00:00
6d9789df45 fix(core): update 2020-03-08 15:14:24 +00:00
0be8a6f60d 2.0.11 2020-03-08 10:54:12 +00:00
a3793572e7 fix(core): update 2020-03-08 10:54:12 +00:00
6ace59d1d1 2.0.10 2020-03-08 10:48:23 +00:00
4 changed files with 1763 additions and 9 deletions

4
.gitignore vendored
View File

@ -15,8 +15,6 @@ node_modules/
# builds # builds
dist/ dist/
dist_web/ dist_*/
dist_serve/
dist_ts_web/
# custom # custom

1757
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/websetup", "name": "@pushrocks/websetup",
"version": "2.0.9", "version": "2.0.13",
"private": false, "private": false,
"description": "setup basic page properties", "description": "setup basic page properties",
"main": "dist/index.js", "main": "dist/index.js",
@ -9,8 +9,9 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild --web)", "build": "(tsbuild --web && npm run bundle)",
"format": "(gitzone format)" "format": "(gitzone format)",
"bundle": "tsbundle --production --from ./ts/index.ts --to ./dist_bundle/bundle.js"
}, },
"keywords": [ "keywords": [
"lossless", "lossless",
@ -18,6 +19,7 @@
], ],
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.17", "@gitzone/tsbuild": "^2.1.17",
"@gitzone/tsbundle": "^1.0.50",
"@gitzone/tstest": "^1.0.28", "@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.2.0", "@pushrocks/tapbundle": "^3.2.0",
"tslint": "^6.0.0", "tslint": "^6.0.0",

View File

@ -42,8 +42,7 @@ const addOpenGraphProperty = async (
contentArg: string contentArg: string
): Promise<Element> => { ): Promise<Element> => {
const openGraphElement = document.createElement('meta'); const openGraphElement = document.createElement('meta');
const anonGE: any = openGraphElement; openGraphElement.setAttribute('property', propertyNameArg);
anonGE.property = propertyNameArg;
openGraphElement.content = contentArg; openGraphElement.content = contentArg;
document.getElementsByTagName('head')[0].appendChild(openGraphElement); document.getElementsByTagName('head')[0].appendChild(openGraphElement);
return openGraphElement; return openGraphElement;