Comparing version 1.8.3 to 1.9.0
@@ -0,1 +1,8 @@ | ||
# [1.9.0](https://github.com/imsnif/synp/compare/v1.8.3...v1.9.0) (2020-09-26) | ||
### Features | ||
* support composite version syntax in pkg.json ([012bb94](https://github.com/imsnif/synp/commit/012bb946fa4e8df127112c670a6328daae8602d5)), closes [#53](https://github.com/imsnif/synp/issues/53) | ||
## [1.8.3](https://github.com/imsnif/synp/compare/v1.8.2...v1.8.3) (2020-09-26) | ||
@@ -2,0 +9,0 @@ |
@@ -5,3 +5,3 @@ 'use strict' | ||
const eol = require('eol') | ||
const nmtree = require('nmtree') | ||
const { nmtree } = require('../../util/nmtree') | ||
const { buildYarnTree, buildNpmTree } = require('./tree') | ||
@@ -8,0 +8,0 @@ |
@@ -6,4 +6,4 @@ 'use strict' | ||
const eol = require('eol') | ||
const nmtree = require('nmtree') | ||
const { pick } = require('lodash') | ||
const { nmtree } = require('../../util/nmtree') | ||
const { buildNpmTree } = require('../lockfileV1/tree') | ||
@@ -10,0 +10,0 @@ const { convertNpmV1ToYarn } = require('../lockfileV1') |
{ | ||
"name": "synp", | ||
"version": "1.8.3", | ||
"version": "1.9.0", | ||
"description": "Convert yarn.lock to package-lock.json and vice versa", | ||
@@ -39,2 +39,3 @@ "keywords": [ | ||
"request": "^2.88.2", | ||
"semver": "^7.3.2", | ||
"sort-object-keys": "^1.1.3" | ||
@@ -41,0 +42,0 @@ }, |
@@ -382,11 +382,2 @@ 'use strict' | ||
) | ||
/* const yarnLock = fs.readFileSync(`${path}/.yarn-lock-snapshot`, 'utf-8') | ||
const res = npmToYarn(path) | ||
t.deepEquals( | ||
lockfile.parse(res), | ||
lockfile.parse(yarnLock), | ||
'result is equal to yarn.lock snapshot' | ||
) */ | ||
} catch (e) { | ||
@@ -525,1 +516,30 @@ t.fail(e.stack) | ||
}) | ||
test('handle composite version notation in package.json', async t => { | ||
try { | ||
t.plan(2) | ||
const path = `${__dirname}/fixtures/composite-pkg-version` | ||
const packageLockSnap = fs.readFileSync(`${path}/.package-lock-snapshot.json`, 'utf-8') | ||
const yarnLockSnap = fs.readFileSync(`${path}/.yarn-lock-snapshot`, 'utf-8') | ||
fs.writeFileSync(`${path}/yarn.lock`, yarnLockSnap) | ||
const pkgLock = yarnToNpm(path) | ||
t.deepEquals( | ||
JSON.parse(pkgLock), | ||
JSON.parse(packageLockSnap), | ||
'result is equal to package-lock.json snapshot' | ||
) | ||
fs.writeFileSync(`${path}/package-lock.json`, packageLockSnap) | ||
const yarnLock = npmToYarn(path) | ||
t.deepEquals( | ||
lockfile.parse(yarnLock), | ||
lockfile.parse(yarnLockSnap), | ||
'result is equal to yarn.lock snapshot' | ||
) | ||
} catch (e) { | ||
t.fail(e.stack) | ||
t.end() | ||
} | ||
}) |
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
61979
31
1593
10
+ Addedsemver@^7.3.2
+ Addedsemver@7.6.3(transitive)