Skip to content

Commit

Permalink
address security concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
checksonhk committed Jan 30, 2024
1 parent 9a82c5e commit bf8233a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib/
examples/bundle.js
package-lock.json
examples/iife
.envrc
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@alpacahq:registry=https://npm.pkg.github.com/alpacahq
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
SRC_DEPS = src/index.tsx src/third-party/qrcodegen/index.ts
CFG_DEPS = yarn.lock package.json tsup.config.ts
CFG_DEPS = package.json tsup.config.ts

all: lib/index.js lib/index.d.ts lib/index.js examples/iife/demo.js
all: lib/index.js lib/index.d.ts lib/index.js

lib:
mkdir -p lib

lib/index.d.ts: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code
npm run build:code

lib/esm/index.js: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code
npm run build:code

lib/index.js: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code

examples/iife/demo.js: lib/esm/index.js examples/demo.tsx
yarn run build:examples
npm run build:code

clean:
rm -rf lib examples/iife/demo.js
rm -rf lib
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# qrcode.react

This is a copy of qrcode.react
A React component to generate [QR codes](http://en.wikipedia.org/wiki/QR_code) for rendering to the DOM.

## Installation
Expand Down
292 changes: 0 additions & 292 deletions examples/demo.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions examples/index.html

This file was deleted.

Loading

0 comments on commit bf8233a

Please sign in to comment.