Comparing version 1.2.4 to 2.0.0
@@ -5,8 +5,8 @@ { | ||
"routes": { | ||
"/": "playground", | ||
"/": "doc", | ||
"/node_modules/": "node_modules", | ||
"/dist/": "dist", | ||
"/.playground": ".playground" | ||
"/.doc": ".doc" | ||
} | ||
} | ||
} |
111
package.json
{ | ||
"name": "ng2-konva", | ||
"version": "1.2.4", | ||
"version": "2.0.0", | ||
"description": "Angular binding to canvas element via Konva framework", | ||
@@ -12,27 +12,16 @@ "keywords": [ | ||
], | ||
"main": "dist/ng2-konva.umd.js", | ||
"module": "dist/index.js", | ||
"jsnext:main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"main": "konva.bundle.js", | ||
"jsnext:main": "konva.module.js", | ||
"module": "konva.module.js", | ||
"types": "konva.module.d.ts", | ||
"scripts": { | ||
"build": "gulp build", | ||
"build:watch": "gulp", | ||
"docs": "npm run docs:build", | ||
"docs:build": "compodoc -p tsconfig.json -n ng2-konva -d docs --hideGenerator", | ||
"docs:serve": "npm run docs:build -- -s", | ||
"docs:watch": "npm run docs:build -- -s -w", | ||
"lint": "tslint --type-check --project tsconfig.json src/**/*.ts", | ||
"ng": "ng", | ||
"start": "ng serve", | ||
"test": "mocha --require ts-node/register test/**/*.spec.ts --recursive", | ||
"test:watch": "mocha -w --require ts-node/register test/**/*.spec.ts --recursive", | ||
"lite": "lite-server", | ||
"webpack": "webpack", | ||
"playground:watch": "tsc -p playground -w", | ||
"playground:build": "tsc -p playground", | ||
"playground": "concurrently \"npm run build:watch\" \"npm run playground:watch\" \"npm run lite\"", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:ci": "jest --runInBand" | ||
"build": "rimraf dist && tsc -p tsconfig-esm.json && rollup -c rollup.config.js dist/konva.module.js > dist/konva.bundle.js && cp package.json dist && ts-node tools/cleanup.ts && ngc && cp readme.md dist", | ||
"lint": "tslint -c tslint.json lib/**/*.ts test/**/*.ts" | ||
}, | ||
"jest": { | ||
"preset": "jest-preset-angular", | ||
"setupTestFrameworkScriptFile": "<rootDir>/src/jest.ts" | ||
}, | ||
"repository": { | ||
@@ -50,48 +39,58 @@ "type": "git", | ||
}, | ||
"dependencies": { | ||
"@angular/compiler": "^5.0.0", | ||
"@angular/common": "^5.0.0", | ||
"@angular/core": "^5.0.0", | ||
"core-js": "^2.4.1", | ||
"rxjs": "^5.5.0", | ||
"zone.js": "^0.8.12" | ||
"peerDependencies": { | ||
"@angular/core": ">=4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/animations": "^5.0.3", | ||
"@angular/cli": "1.5.4", | ||
"@angular/common": "^5.0.3", | ||
"@angular/compiler": "^5.0.3", | ||
"@angular/compiler-cli": "^5.0.0", | ||
"@angular/forms": "5.0.0", | ||
"@angular/platform-browser": "^5.0.0", | ||
"@angular/platform-browser-dynamic": "^5.0.0", | ||
"@compodoc/compodoc": "^1.0.0-beta.10", | ||
"@types/jest": "^19.2.3", | ||
"@angular/core": "^5.0.3", | ||
"@angular/forms": "^5.0.3", | ||
"@angular/http": "^5.0.3", | ||
"@angular/language-service": "^5.0.0", | ||
"@angular/platform-browser": "^5.0.3", | ||
"@angular/platform-browser-dynamic": "^5.0.3", | ||
"@angular/router": "^5.0.3", | ||
"@types/jasmine": "~2.5.53", | ||
"@types/jasminewd2": "~2.0.2", | ||
"@types/node": "~6.0.60", | ||
"angular-in-memory-web-api": "^0.3.2", | ||
"codelyzer": "~2.0.0", | ||
"concurrently": "^3.4.0", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-rollup": "^2.11.0", | ||
"codelyzer": "^4.0.1", | ||
"concurrently": "^3.5.1", | ||
"core-js": "^2.4.1", | ||
"html-loader": "^0.5.1", | ||
"jest": "^20.0.3", | ||
"jest-preset-angular": "^2.0.2", | ||
"jasmine-core": "~2.6.2", | ||
"jasmine-spec-reporter": "~4.1.0", | ||
"karma": "~1.7.0", | ||
"karma-chrome-launcher": "~2.1.1", | ||
"karma-cli": "~1.0.1", | ||
"karma-coverage-istanbul-reporter": "^1.2.1", | ||
"karma-jasmine": "~1.1.0", | ||
"karma-jasmine-html-reporter": "^0.2.2", | ||
"konva": "^1.7.6", | ||
"lite-server": "^2.3.0", | ||
"markdown-loader": "^2.0.1", | ||
"ng2-konva": "^1.0.6", | ||
"ngx-bootstrap": "^2.0.0-beta.8", | ||
"node-sass": "^4.5.2", | ||
"ng2-konva": "^1.0.8", | ||
"node-sass": "^4.7.2", | ||
"node-sass-tilde-importer": "^1.0.0", | ||
"node-watch": "^0.5.2", | ||
"protractor": "~5.1.0", | ||
"protractor": "~5.1.2", | ||
"raw-loader": "^0.5.1", | ||
"rollup": "^0.41.6", | ||
"run-sequence": "^1.2.2", | ||
"systemjs": "^0.20.12", | ||
"ts-loader": "^3.1.1", | ||
"ts-node": "~2.0.0", | ||
"tslint": "~4.5.0", | ||
"typescript": "2.4.2", | ||
"rimraf": "^2.5.4", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rxjs": "^5.5.2", | ||
"systemjs": "0.19.28", | ||
"ts-helpers": "^1.1.2", | ||
"ts-loader": "^3.2.0", | ||
"ts-node": "~3.2.0", | ||
"tslib": "^1.5.0", | ||
"tslint": "~5.7.0", | ||
"typescript": "~2.4.2", | ||
"uglifyjs": "^2.4.10", | ||
"uglifyjs-webpack-plugin": "^1.0.1", | ||
"url-loader": "^0.6.2", | ||
"webpack": "^3.8.1" | ||
"webpack": "^3.10.0", | ||
"zone.js": "^0.8.14" | ||
}, | ||
@@ -98,0 +97,0 @@ "engines": { |
@@ -65,3 +65,2 @@ # ng2-konva | ||
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/of'; | ||
@@ -68,0 +67,0 @@ @Component({ |
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"baseUrl": "./src", | ||
"rootDir": "./src", | ||
"target": "es5", | ||
"module": "es2015", | ||
"module": "commonjs", | ||
"sourceMap": true, | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"stripInternal": true, | ||
"declaration": true, | ||
"outDir": "./dist", | ||
"lib": ["es2015", "dom"], | ||
"declaration": true, | ||
"stripInternal": true, | ||
"skipLibCheck": true, | ||
"types": [], | ||
"paths": { | ||
"@angular/*": ["node_modules/@angular/*"], | ||
"rxjs/*": ["node_modules/rxjs/*"], | ||
"ng2-konva": ["node_modules/ng2-konva"] | ||
} | ||
"typeRoots": ["node_modules/@types", "./node_modules"], | ||
"types": ["node"] | ||
}, | ||
"exclude": [ | ||
"e2e", | ||
"node_modules", | ||
"**/*.spec.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"strictMetadataEmit": true, | ||
"skipTemplateCodegen": true | ||
} | ||
} |
{ | ||
"rulesDirectory": [ | ||
"node_modules/codelyzer" | ||
], | ||
"rulesDirectory": ["node_modules/codelyzer"], | ||
"rules": { | ||
"arrow-return-shorthand": true, | ||
"callable-types": true, | ||
"class-name": true, | ||
"comment-format": [ | ||
true, | ||
"check-space" | ||
], | ||
"comment-format": [true, "check-space"], | ||
"curly": true, | ||
"eofline": true, | ||
"forin": true, | ||
"indent": [ | ||
true, | ||
"spaces" | ||
], | ||
"import-blacklist": [true, "rxjs", "rxjs/Rx"], | ||
"import-spacing": true, | ||
"indent": [true, "spaces"], | ||
"interface-over-type-literal": true, | ||
"label-position": true, | ||
"max-line-length": [ | ||
true, | ||
140 | ||
], | ||
"max-line-length": [true, 140], | ||
"member-access": false, | ||
"member-ordering": [ | ||
true, | ||
"static-before-instance", | ||
"variables-before-functions" | ||
{ | ||
"order": [ | ||
"static-field", | ||
"instance-field", | ||
"static-method", | ||
"instance-method" | ||
] | ||
} | ||
], | ||
"no-arg": true, | ||
"no-bitwise": true, | ||
"no-console": [ | ||
true, | ||
"debug", | ||
"info", | ||
"time", | ||
"timeEnd", | ||
"trace" | ||
], | ||
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"], | ||
"no-construct": true, | ||
"no-debugger": true, | ||
"no-duplicate-variable": true, | ||
"no-duplicate-super": true, | ||
"no-empty": false, | ||
"no-empty-interface": true, | ||
"no-eval": true, | ||
"no-inferrable-types": true, | ||
"no-inferrable-types": [true, "ignore-params"], | ||
"no-misused-new": true, | ||
"no-non-null-assertion": true, | ||
"no-shadowed-variable": true, | ||
"no-string-literal": false, | ||
"no-string-throw": true, | ||
"no-switch-case-fall-through": true, | ||
"no-trailing-whitespace": true, | ||
"no-unnecessary-initializer": true, | ||
"no-unused-expression": true, | ||
"no-unused-variable": true, | ||
"no-use-before-declare": true, | ||
@@ -61,14 +58,7 @@ "no-var-keyword": true, | ||
], | ||
"quotemark": [ | ||
true, | ||
"single" | ||
], | ||
"prefer-const": true, | ||
"quotemark": [true, "single"], | ||
"radix": true, | ||
"semicolon": [ | ||
"always" | ||
], | ||
"triple-equals": [ | ||
true, | ||
"allow-null-check" | ||
], | ||
"semicolon": [true, "always"], | ||
"triple-equals": [true, "allow-null-check"], | ||
"typedef-whitespace": [ | ||
@@ -84,2 +74,4 @@ true, | ||
], | ||
"typeof-compare": true, | ||
"unified-signatures": true, | ||
"variable-name": false, | ||
@@ -94,4 +86,6 @@ "whitespace": [ | ||
], | ||
"directive-selector": [true, "attribute", "", "camelCase"], | ||
"component-selector": [false, "element", "", "kebab-case"], | ||
"directive-selector": [true, "attribute", "app", "camelCase"], | ||
"component-selector": [true, "element", "app", "kebab-case"], | ||
"angular-whitespace": [true, "check-interpolation"], | ||
"no-output-on-prefix": true, | ||
"use-input-property-decorator": true, | ||
@@ -98,0 +92,0 @@ "use-output-property-decorator": true, |
@@ -6,5 +6,5 @@ const path = require('path'); | ||
devtool: 'inline-source-map', | ||
entry: './playground/main.ts', | ||
entry: './doc/main.ts', | ||
output: { | ||
path: path.resolve(__dirname, '.playground'), | ||
path: path.resolve(__dirname, '.doc'), | ||
filename: 'bundle.umd.js', | ||
@@ -11,0 +11,0 @@ libraryTarget: 'umd' |
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
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
66
0
361691
52
2062
104
+ Added@angular/core@18.2.6(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedzone.js@0.14.10(transitive)
- Removed@angular/common@^5.0.0
- Removed@angular/compiler@^5.0.0
- Removed@angular/core@^5.0.0
- Removedcore-js@^2.4.1
- Removedrxjs@^5.5.0
- Removedzone.js@^0.8.12
- Removed@angular/common@5.2.11(transitive)
- Removed@angular/compiler@5.2.11(transitive)
- Removed@angular/core@5.2.11(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedrxjs@5.5.12(transitive)
- Removedsymbol-observable@1.0.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removedzone.js@0.8.29(transitive)