mirror of
https://github.com/cnwhy/QRCode-decode.git
synced 2026-08-12 12:11:36 +08:00
build fix
This commit is contained in:
Vendored
+2497
File diff suppressed because one or more lines are too long
Vendored
-7
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
+228
-849
File diff suppressed because one or more lines are too long
Vendored
+7
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+4
-5
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "qr-decode",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"description": "QRCode parser/decode",
|
||||
"main": "src/QRCodeDecode.js",
|
||||
"main": "src/QRDecode.js",
|
||||
"files": [
|
||||
"README.md",
|
||||
"browser.js",
|
||||
@@ -13,7 +13,7 @@
|
||||
"scripts": {
|
||||
"test": "node test/node.js",
|
||||
"demo": "parcel ./demo/index.html",
|
||||
"build": "bili browser.js --format umd,umd-min --banner"
|
||||
"build": "bili browser.js --format umd,umd-min,es --module-name qrDecode --file-name qr-decode.[format][min][ext] --banner"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -34,13 +34,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/cnwhy/QRCode-decode#readme",
|
||||
"devDependencies": {
|
||||
"bili": "^3.1.2",
|
||||
"bili": "^5.0.5",
|
||||
"parcel": "^1.9.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"bmp-js": "^0.1.0",
|
||||
"image-type": "^3.0.0",
|
||||
"jsqr": "^1.1.1",
|
||||
"pako": "^1.0.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var fs = require('fs')
|
||||
var imgType = require('image-type')
|
||||
var imgDecode = require('./src/imageDecode')
|
||||
var qrDecode = require('./src/')
|
||||
var qrDecode = require('./src/QRDecode');
|
||||
|
||||
/**
|
||||
* 通过Buffer识别二维码
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
var jsqr = require('jsqr');
|
||||
module.exports = function(imageData){
|
||||
return jsqr(imageData.data,imageData.width,imageData.height).data;
|
||||
}
|
||||
Reference in New Issue
Block a user