react-hooks-library
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-hooks-library", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "webpack -p --config=webpack.config.prod.js", | ||
"build": "tsc --p tsconfig.types.json", | ||
"test": "jest --env=jsdom", | ||
@@ -11,3 +11,3 @@ "lint": "tslint -p .", | ||
}, | ||
"typings": "index.d.ts", | ||
"module": "dist/index.js", | ||
"devDependencies": { | ||
@@ -32,2 +32,3 @@ "@babel/core": "^7.2.2", | ||
"@types/sinon": "^7.0.10", | ||
"@types/webpack": "^4.4.26", | ||
"babel-jest": "^24.5.0", | ||
@@ -34,0 +35,0 @@ "babel-loader": "^8.0.5", |
import { Date } from '../../src/fields' | ||
jest.mock('moment', () => () => ({ format: () => '2012-11-11' })) | ||
describe('Model Numeric', () => { | ||
@@ -14,7 +16,3 @@ const date = new Date('2012-11-11', { | ||
chaiExpect(date.format()).to.be.equal('2012-11-11') | ||
chaiExpect(date.format('YYYY-MM-DD HH:mm:ss')).to.be.equal( | ||
'2012-11-11 00:00:00' | ||
) | ||
}) | ||
}) |
@@ -12,5 +12,5 @@ const path = require('path'); | ||
output: { | ||
filename: 'react-hooks-uitls.js', | ||
filename: 'react-hooks-library.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
library: 'react-hooks-uitls', | ||
library: 'react-hooks-library', | ||
libraryTarget: 'umd', | ||
@@ -17,0 +17,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
87
1919
2
0
301204
50