go-captcha-jslib
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "go-captcha-jslib", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"private": false, | ||
@@ -39,17 +39,17 @@ "description": "This is the javascript library for go-captcha", | ||
"typings": "./lib/index.d.ts", | ||
"module": "dist/gocaptchalib.cjs.js", | ||
"unpkg": "./dist/gocaptchalib.global.js", | ||
"jsdelivr": "./dist/gocaptchalib.global.js", | ||
"module": "dist/gocaptcha.cjs.js", | ||
"unpkg": "./dist/gocaptcha.global.js", | ||
"jsdelivr": "./dist/gocaptcha.global.js", | ||
"exports": { | ||
".": { | ||
"node": { | ||
"module": "./dist/gocaptchalib.cjs.js", | ||
"require": "./dist/gocaptchalib.cjs.js", | ||
"module": "./dist/gocaptcha.cjs.js", | ||
"require": "./dist/gocaptcha.cjs.js", | ||
"import": "./index.mjs" | ||
}, | ||
"browser": { | ||
"import": "./dist/gocaptchalib.cjs.js", | ||
"require": "./dist/gocaptchalib.cjs.js" | ||
"import": "./dist/gocaptcha.cjs.js", | ||
"require": "./dist/gocaptcha.cjs.js" | ||
}, | ||
"default": "./dist/gocaptchalib.cjs.js" | ||
"default": "./dist/gocaptcha.cjs.js" | ||
}, | ||
@@ -60,3 +60,3 @@ "./package.json": "./package.json", | ||
"browser": { | ||
"dist/index.js": "./dist/gocaptchalib.global.js" | ||
"dist/index.js": "./dist/gocaptcha.global.js" | ||
}, | ||
@@ -63,0 +63,0 @@ "devDependencies": { |
@@ -21,11 +21,12 @@ # Go Captcha Javascript Library | ||
``` javascript | ||
// Import css | ||
import "go-captcha-jslib/dist/gocaptchalib.global.css" | ||
import "go-captcha-jslib/dist/gocaptcha.global.css" | ||
// Import Module | ||
const GoCaptchaLib = require('go-captcha-jslib') | ||
console.log(GoCaptchaLib) | ||
import { GoCaptcha } from "go-captcha-jslib"; | ||
console.log(GoCaptcha) | ||
// OR | ||
import { GoCaptchaLib } from "gocaptchalib"; | ||
console.log(GoCaptchaLib) | ||
const GoCaptcha = require('go-captcha-jslib') | ||
console.log(GoCaptcha) | ||
@@ -43,9 +44,10 @@ ``` | ||
```html | ||
<!-- css --> | ||
<link href="/bower_components/go-captcha-jslib/dist/gocaptcha.global.css" rel="stylesheet"> | ||
<!-- Js --> | ||
<script src="/bower_components/go-captcha-jslib/dist/gocaptchalib.global.js"></script> | ||
<!-- css --> | ||
<link href="/bower_components/go-captcha-jslib/dist/gocaptchalib.global.css" rel="stylesheet"> | ||
<script src="/bower_components/go-captcha-jslib/dist/gocaptcha.global.js"></script> | ||
<script> | ||
console.log(window.GoCaptchaLib) | ||
console.log(window.GoCaptcha) | ||
</script> | ||
@@ -58,8 +60,8 @@ ``` | ||
<!-- Js --> | ||
<script src="https://unpkg.com/go-captcha-jslib@1.0.1/dist/gocaptchalib.global.js"></script> | ||
<script src="https://unpkg.com/go-captcha-jslib@1.0.1/dist/gocaptcha.global.js"></script> | ||
<!-- css --> | ||
<link href="https://unpkg.com/go-captcha-jslib@1.0.1/dist/gocaptchalib.global.css" rel="stylesheet"> | ||
<link href="https://unpkg.com/go-captcha-jslib@1.0.1/dist/gocaptcha.global.css" rel="stylesheet"> | ||
<script> | ||
console.log(window.GoCaptchaLib) | ||
console.log(window.GoCaptcha) | ||
</script> | ||
@@ -76,3 +78,3 @@ ``` | ||
const el = document.getElementById("click-wrap"); | ||
const capt = new GoCaptchaLib.Click(el) | ||
const capt = new GoCaptcha.Click(el) | ||
@@ -160,3 +162,3 @@ capt.mount() | ||
const el = document.getElementById("slide-wrap"); | ||
const capt = new GoCaptchaLib.Slide(el) | ||
const capt = new GoCaptcha.Slide(el) | ||
@@ -250,3 +252,3 @@ capt.mount() | ||
const el = document.getElementById("slide-region-wrap"); | ||
const capt = new GoCaptchaLib.SlideRegion(el) | ||
const capt = new GoCaptcha.SlideRegion(el) | ||
@@ -337,3 +339,3 @@ capt.mount() | ||
const el = document.getElementById("rotate-wrap"); | ||
const capt = new GoCaptchaLib.Rotate(el) | ||
const capt = new GoCaptcha.Rotate(el) | ||
@@ -423,3 +425,3 @@ capt.mount() | ||
const el = document.getElementById("button-wrap"); | ||
const capt = new GoCaptchaLib.Button(el) | ||
const capt = new GoCaptcha.Button(el) | ||
@@ -426,0 +428,0 @@ capt.mount() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
471
1087830