localstorage-migrator
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -23,5 +23,5 @@ "use strict"; | ||
var appliedMigrations = getAppliedMigrations(); | ||
migrator.migrate(migrations, appliedMigrations); | ||
storeAppliedMigrations(appliedMigrations); | ||
var appliedMigrationsThisTime = migrator.migrate(migrations, appliedMigrations); | ||
storeAppliedMigrations(appliedMigrations.concat(appliedMigrationsThisTime)); | ||
} | ||
exports.migrate = migrate; |
{ | ||
"name": "localstorage-migrator", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A library for applying migrations to localstorage.", | ||
@@ -10,3 +10,8 @@ "main": "lib/index.js", | ||
"lint": "tslint -p tsconfig.json", | ||
"test": "jest --config jest.config.json" | ||
"test": "jest --config jest.config.json", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm test && npm run lint", | ||
"preversion": "npm run lint", | ||
"version": "npm run format && git add -A src", | ||
"postversion": "git push && git push --tags" | ||
}, | ||
@@ -36,2 +41,3 @@ "files": [ | ||
"jest": "^24.8.0", | ||
"jest-localstorage-mock": "^2.4.0", | ||
"prettier": "^1.18.2", | ||
@@ -44,4 +50,4 @@ "ts-jest": "^24.0.2", | ||
"dependencies": { | ||
"rstolsmark-json-migrator": "^1.0.5" | ||
"rstolsmark-json-migrator": "^1.0.6" | ||
} | ||
} |
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
3786
8