Comparing version 1.1.0 to 1.2.0-beta.1
@@ -1,7 +0,1 @@ | ||
/*! | ||
* mount-css v1.1.0 | ||
* A simple function for mounting css | ||
* (c) 2021-2023 saqqdy | ||
* Released under the MIT License. | ||
*/ | ||
/** | ||
@@ -8,0 +2,0 @@ * Dynamic loading of css link resources |
@@ -1,7 +0,1 @@ | ||
/*! | ||
* mount-css v1.1.0 | ||
* A simple function for mounting css | ||
* (c) 2021-2023 saqqdy | ||
* Released under the MIT License. | ||
*/ | ||
function e(e,t){if(void 0===t&&(t={}),!e)throw new Error("[mountCss]: url is required");var r=t.attrs,n=t.props,o=t.force,a=void 0!==o&&o;return new Promise((function(t,o){if(a||!document.querySelector('link[href="'.concat(e,'"]'))){var d,i,l=document.createElement("link");if(r)for(d in r)l[d]=r[d];if(n)for(i in n)l[i]=n[i];l.rel="stylesheet",l.type="text/css",l.href=e,document.getElementsByTagName("head")[0].appendChild(l),l.onload=l.onreadystatechange=function(){l.readyState&&!["loaded","complete"].includes(l.readyState)||(l.onload=l.onreadystatechange=null,t(!0))},l.onerror=o}else t(!0)}))}export{e as default}; | ||
function e(e,r){if(r===void 0){r={}}if(!e)throw new Error("[mountCss]: url is required");var t=r.attrs,n=r.props,o=r.force,a=o===void 0?false:o;return new Promise((function(r,o){if(!a&&document.querySelector('link[href="'.concat(e,'"]'))){r(true);return}var i=document.createElement("link");var d,l;if(t){for(d in t){i[d]=t[d]}}if(n){for(l in n){i[l]=n[l]}}i.rel="stylesheet";i.type="text/css";i.href=e;document.getElementsByTagName("head")[0].appendChild(i);i.onload=i.onreadystatechange=function(){if(!i.readyState||["loaded","complete"].includes(i.readyState)){i.onload=i.onreadystatechange=null;r(true)}};i.onerror=o}))}export{e as default}; |
/*! | ||
* mount-css v1.1.0 | ||
* mount-css v1.2.0-beta.1 | ||
* A simple function for mounting css | ||
* (c) 2021-2023 saqqdy | ||
* (c) 2021-2023 saqqdy<https://github.com/saqqdy> | ||
* Released under the MIT License. | ||
*/ | ||
this.mountCss = (function () { | ||
this.jsCool = (function () { | ||
'use strict'; | ||
@@ -9,0 +9,0 @@ |
@@ -1,7 +0,1 @@ | ||
/*! | ||
* mount-css v1.1.0 | ||
* A simple function for mounting css | ||
* (c) 2021-2023 saqqdy | ||
* Released under the MIT License. | ||
*/ | ||
this.mountCss=function(){"use strict";return function(e,t){if(void 0===t&&(t={}),!e)throw new Error("[mountCss]: url is required");var n=t.attrs,r=t.props,o=t.force,a=void 0!==o&&o;return new Promise((function(t,o){if(a||!document.querySelector('link[href="'.concat(e,'"]'))){var i,s,c=document.createElement("link");if(n)for(i in n)c[i]=n[i];if(r)for(s in r)c[s]=r[s];c.rel="stylesheet",c.type="text/css",c.href=e,document.getElementsByTagName("head")[0].appendChild(c),c.onload=c.onreadystatechange=function(){c.readyState&&!["loaded","complete"].includes(c.readyState)||(c.onload=c.onreadystatechange=null,t(!0))},c.onerror=o}else t(!0)}))}}(); | ||
this.jsCool=function(){"use strict";function e(e,t){if(t===void 0){t={}}if(!e)throw new Error("[mountCss]: url is required");var r=t.attrs,n=t.props,o=t.force,a=o===void 0?false:o;return new Promise((function(t,o){if(!a&&document.querySelector('link[href="'.concat(e,'"]'))){t(true);return}var i=document.createElement("link");var s,u;if(r){for(s in r){i[s]=r[s]}}if(n){for(u in n){i[u]=n[u]}}i.rel="stylesheet";i.type="text/css";i.href=e;document.getElementsByTagName("head")[0].appendChild(i);i.onload=i.onreadystatechange=function(){if(!i.readyState||["loaded","complete"].includes(i.readyState)){i.onload=i.onreadystatechange=null;t(true)}};i.onerror=o}))}return e}(); |
179
package.json
{ | ||
"name": "mount-css", | ||
"description": "A simple function for mounting css", | ||
"version": "1.1.0", | ||
"packageManager": "pnpm@8.5.1", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm-bundler.js", | ||
"browser": "dist/index.esm-browser.js", | ||
"unpkg": "dist/index.global.js", | ||
"jsdelivr": "dist/index.global.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.esm-bundler.js", | ||
"require": "./dist/index.cjs.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"dist": "dist", | ||
"src": "src" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"typings" | ||
], | ||
"scripts": { | ||
"gen:version": "tscjs scripts/version", | ||
"tag:version": "tscjs scripts/tag", | ||
"build": "run-s clean build:{bundle,types} roll-types", | ||
"build:bundle": "rollup -c build/rollup.config.ts --configPlugin @rollup/plugin-typescript", | ||
"build:types": "tsc -p src/tsconfig.json", | ||
"build:docs": "rm-all docs && typedoc && prettier --write \"**/*.md\"", | ||
"deploy": "sh scripts/deploy.sh", | ||
"roll-types": "api-extractor run && rm-all temp", | ||
"watch": "pnpm build:bundle -w", | ||
"pub": "tscjs scripts/publish", | ||
"unpub": "tscjs scripts/unpublish", | ||
"sync": "tscjs scripts/sync", | ||
"workflow:publish-test": "zx scripts/workflow.mjs", | ||
"clean": "rm-all dist es lib", | ||
"dist": "run-s eslint prettier build", | ||
"test-unit": "jest --filter ./scripts/filter-unit.js", | ||
"eslint": "eslint --fix .", | ||
"prettier": "prettier --write \"**/*.{js,ts,jsx,tsx,yml,json,md}\"", | ||
"pub.bak": "git add . && git commit -m $npm_package_version && git pull && git push" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.8", | ||
"@babel/preset-env": "^7.21.5", | ||
"@babel/preset-typescript": "^7.21.5", | ||
"@eslint-sets/eslint-config-ts": "^5.2.0", | ||
"@microsoft/api-extractor": "^7.34.9", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-commonjs": "^25.0.0", | ||
"@rollup/plugin-node-resolve": "^15.0.2", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@rollup/plugin-typescript": "^11.1.1", | ||
"@types/babel__core": "^7.20.0", | ||
"@types/node": "^20.2.0", | ||
"core-js": "^3.30.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.40.0", | ||
"fast-glob": "^3.2.12", | ||
"load-yml": "^1.3.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.8", | ||
"prettier-config-common": "^1.4.0", | ||
"reinstaller": "^3.0.0", | ||
"rm-all": "^1.0.0", | ||
"rollup": "^3.22.0", | ||
"rollup-plugin-filesize": "^10.0.0", | ||
"rollup-plugin-visualizer": "^5.9.0", | ||
"tsnd": "^1.1.0", | ||
"typescript": "^5.0.4", | ||
"zx": "^7.2.2" | ||
}, | ||
"peerDependencies": { | ||
"core-js": ">= 3" | ||
}, | ||
"engines": { | ||
"node": ">=12.20" | ||
}, | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"webpack" | ||
], | ||
"allowedVersions": { | ||
"eslint": "^8.0.0" | ||
} | ||
} | ||
}, | ||
"keywords": [ | ||
"mount-css", | ||
"load-css", | ||
"load-style", | ||
"saqqdy" | ||
], | ||
"license": "MIT", | ||
"author": "saqqdy<https://github.com/saqqdy>", | ||
"homepage": "https://github.com/saqqdy/mount-css#readme", | ||
"bugs": { | ||
"url": "https://github.com/saqqdy/mount-css/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/saqqdy/mount-css.git" | ||
} | ||
} | ||
"name": "mount-css", | ||
"description": "A simple function for mounting css", | ||
"version": "1.2.0-beta.1", | ||
"packageManager": "pnpm@8.5.1", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm-bundler.js", | ||
"browser": "dist/index.esm-browser.js", | ||
"unpkg": "dist/index.global.prod.js", | ||
"jsdelivr": "dist/index.global.prod.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.esm-bundler.js", | ||
"require": "./dist/index.cjs.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"dist": "dist", | ||
"src": "src" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"typings" | ||
], | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.35.1", | ||
"eslint": "^8.41.0", | ||
"prettier": "^2.8.8" | ||
}, | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"@babel/core", | ||
"webpack" | ||
], | ||
"allowedVersions": {} | ||
} | ||
}, | ||
"keywords": [ | ||
"mount-css", | ||
"load-css", | ||
"load-style", | ||
"saqqdy" | ||
], | ||
"license": "MIT", | ||
"author": "saqqdy <https://github.com/saqqdy>", | ||
"homepage": "https://github.com/saqqdy/browsers/tree/master/packages/mount-css#readme", | ||
"bugs": { | ||
"url": "https://github.com/saqqdy/browsers/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/saqqdy/browsers.git", | ||
"directory": "packages/mount-css" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org", | ||
"access": "public" | ||
} | ||
} |
@@ -57,3 +57,3 @@ <div style="text-align: center;" align="center"> | ||
<!-- head --> | ||
<script src="https://unpkg.com/mount-css@1.0.0/dist/index.global.prod.js"></script> | ||
<script src="https://unpkg.com/mount-css@1.2.0/dist/index.global.prod.js"></script> | ||
``` | ||
@@ -63,3 +63,3 @@ | ||
Please open an issue [here](https://github.com/saqqdy/mount-css/issues). | ||
Please open an issue [here](https://github.com/saqqdy/browsers/issues). | ||
@@ -82,3 +82,3 @@ ## License | ||
[license-url]: LICENSE | ||
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_mount-css | ||
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_mount-css | ||
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_browsers | ||
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_browsers |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
3
0
13938
271
1