dexie-cloud-addon
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-beta.1
106
package.json
{ | ||
"name": "dexie-cloud-addon", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-beta.1", | ||
"description": "Dexie addon that syncs with to Dexie Cloud", | ||
"main": "dist/dexie-cloud.js", | ||
"module": "dist/dexie-cloud.mjs", | ||
"esnext": "esnext/dexie-cloud.js", | ||
"typings": "dist/dexie-cloud.d.ts", | ||
"main": "dist/umd/dexie-cloud-addon.js", | ||
"module": "dist/module-es5/dexie-cloud-addon.js", | ||
"exports": { | ||
".": { | ||
"development": "./dist/modern/dexie-cloud-addon.js", | ||
"production": "./dist/modern/dexie-cloud-addon.min.js", | ||
"default": "./dist/modern/dexie-cloud-addon.js" | ||
}, | ||
"./service-worker": "./dist/modern/service-worker.min.js" | ||
}, | ||
"types": "dist/types/dexie-cloud-client.d.ts", | ||
"engines": { | ||
"node": ">=8.2.1" | ||
"node": ">=14" | ||
}, | ||
@@ -19,6 +26,6 @@ "repository": { | ||
"test-unit": "karma start test/unit/karma.conf.js --single-run", | ||
"build": "just-build", | ||
"build": "just-build && bash ./copydts.sh", | ||
"watch": "just-build --watch", | ||
"clean": "rm -rf tools/tmp dist esnext test/unit/bundle.*", | ||
"prepare": "just-build" | ||
"clean": "rm -rf tools/tmp dist test/unit/bundle.*", | ||
"copydts": "bash ./copydts.sh" | ||
}, | ||
@@ -32,19 +39,40 @@ "just-build": { | ||
"just-build src", | ||
"just-build dexie-cloud service-worker", | ||
"# Minify the default ES5 UMD module", | ||
"cd dist", | ||
"uglifyjs dexie-cloud.js -m -c negate_iife=0 -o dexie-cloud.min.js --source-map", | ||
"cd ..", | ||
"terser --compress --mangle --source-map -o esnext/dexie-cloud.min.js -- esnext/dexie-cloud.js", | ||
"terser --compress --mangle --source-map -o dist/dexie-cloud.min.js -- dist/dexie-cloud.mjs" | ||
"cd dist/umd", | ||
"# Minify ES5 UMD bundle", | ||
"uglifyjs dexie-cloud-addon.js -m -c negate_iife=0 -o dexie-cloud-addon.min.js --source-map", | ||
"cd ../..", | ||
"#dts-bundle-generator --external-imports=dexie --project src/tsconfig.json -o dist/dexie-cloud-addon.d.ts tools/tmp/modern/dexie-cloud-client.d.ts", | ||
"# Minify modern bundle", | ||
"terser --comments false --compress --mangle --module --source-map -o dist/modern/dexie-cloud-addon.min.js -- dist/modern/dexie-cloud-addon.js", | ||
"# Minify module bundle", | ||
"terser --comments false --compress --mangle --module --source-map -o dist/module-es5/dexie-cloud-addon.min.js -- dist/module-es5/dexie-cloud-addon.js", | ||
"# Minify modern service-worker", | ||
"terser --comments false --compress --mangle --module --source-map -o dist/modern/service-worker.min.js -- dist/modern/service-worker.js", | ||
"# Minify umd service-worker", | ||
"terser --comments false --compress --mangle --source-map -o dist/umd/service-worker.min.js -- dist/umd/service-worker.js" | ||
], | ||
"src": [ | ||
"tsc -p src -t esnext --outDir tools/tmp/esnext [--watch 'Compilation complete.']", | ||
"rollup -c tools/build-configs/rollup.esnext.config.js", | ||
"tsc --allowJs -m es2015 -t es5 --sourceMap --outDir tools/tmp/es5 esnext/dexie-cloud.js", | ||
"# Build the entire typescript source into modern JS", | ||
"tsc -p src -t es2018 --outDir tools/tmp/modern [--watch 'Watching for file changes.']" | ||
], | ||
"dexie-cloud": [ | ||
"# Create a modern bundle in dist/modern", | ||
"rollup -c tools/build-configs/rollup.modern.config.js", | ||
"# Transpile the modern dexie-cloud bundle into ES5 JS", | ||
"tsc --allowJs -m es2015 -t es5 --sourceMap --importHelpers true --outDir tools/tmp/es5 dist/modern/dexie-cloud-addon.js", | ||
"# Create ES5 bundles: One UMD and one MJS", | ||
"rollup -c tools/build-configs/rollup.es5.config.js", | ||
"# Copy dexie-cloud-client.d.ts to dist", | ||
"node -e \"fs.writeFileSync('dist/dexie-cloud.d.ts', fs.readFileSync('tools/tmp/esnext/dexie-cloud-client.d.ts'))\"", | ||
"#node -e \"fs.writeFileSync('dist/dexie-cloud-addon.d.ts', fs.readFileSync('tools/tmp/modern/dexie-cloud-client.d.ts'))\"", | ||
"# Replace {version} and {date} in output files", | ||
"node tools/replaceVersionAndDate.js dist/dexie-cloud.d.ts dist/dexie-cloud.js dist/dexie-cloud.mjs esnext/dexie-cloud.js" | ||
"node tools/replaceVersionAndDate.js dist/umd/dexie-cloud-addon.js dist/module-es5/dexie-cloud-addon.js dist/modern/dexie-cloud-addon.js" | ||
], | ||
"service-worker": [ | ||
"# Create a modern bundle in dist/modern", | ||
"rollup -c tools/build-configs/rollup.sw.modern.config.js", | ||
"# Replace {version} and {date} in output files", | ||
"node tools/replaceVersionAndDate.js dist/umd/service-worker.js dist/modern/service-worker.js" | ||
], | ||
"test": [ | ||
@@ -61,23 +89,27 @@ "just-build test-unit" | ||
"devDependencies": { | ||
"@types/node": "^14.6.3", | ||
"dreambase-library": "^1.0.4", | ||
"just-build": "^0.9.19", | ||
"karma": "^5.2.1", | ||
"karma-browserstack-launcher": "^1.6.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-firefox-launcher": "^1.3.0", | ||
"karma-qunit": "^4.1.1", | ||
"rollup": "^2.26.9", | ||
"rollup-plugin-alias": "^2.2.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.6.2", | ||
"tslib": "^2.0.1", | ||
"typescript": "^4.0.2" | ||
"@rollup/plugin-commonjs": "^18.0.0", | ||
"@rollup/plugin-node-resolve": "^11.2.1", | ||
"@types/node": "*", | ||
"dexie-cloud-common": "^1.0.14", | ||
"dreambase-library": "^1.0.13", | ||
"just-build": "*", | ||
"karma": "*", | ||
"karma-browserstack-launcher": "*", | ||
"karma-chrome-launcher": "*", | ||
"karma-firefox-launcher": "*", | ||
"karma-qunit": "*", | ||
"preact": "*", | ||
"rollup": "^2.45.2", | ||
"rollup-plugin-alias": "*", | ||
"rollup-plugin-commonjs": "*", | ||
"rollup-plugin-node-resolve": "*", | ||
"rollup-plugin-sourcemaps": "*", | ||
"tslib": "*", | ||
"typescript": "*", | ||
"universal-imports": "^1.0.3" | ||
}, | ||
"dependencies": { | ||
"dexie": "^3.0.2", | ||
"dexie-observable": "^3.0.0-beta.9", | ||
"dexie-syncable": "^3.0.0-beta.9" | ||
"dexie": "^3.2.0-beta.1", | ||
"rxjs": "^6.6.7" | ||
} | ||
} |
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
Network access
Supply chain riskThis module accesses the network.
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
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
4385180
2
96
29651
20
4
45
+ Addedrxjs@^6.6.7
+ Addedrxjs@6.6.7(transitive)
+ Addedtslib@1.14.1(transitive)
- Removeddexie-observable@^3.0.0-beta.9
- Removeddexie-syncable@^3.0.0-beta.9
- Removeddexie-observable@3.0.0-beta.11(transitive)
- Removeddexie-syncable@3.0.0-beta.10(transitive)
Updateddexie@^3.2.0-beta.1