Socket
Socket
Sign inDemoInstall

editions

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editions - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

compiled-types/index.d.ts

26

HISTORY.md
# History
## v2.3.1 2020 May 21
- Cherry-pick the types compilation from v3 to hopefully fix the consumption error:
```
node_modules/editions/source/index.ts:6:20 - error TS7016: Could not find a declaration file for module 'semver'. '/Users/balupton/Projects/active/envfile/node_modules/semver/semver.js' implicitly has an 'any' type.
Try `npm install @types/semver` if it exists or add a new declaration (.d.ts) file containing `declare module 'semver';`
6 import semver from 'semver'
```
## v2.3.0 2019 December 11

@@ -22,7 +32,9 @@

```
./node_modules/editions/edition-node-0.8/index.js:310
if (editionError.code.indexOf('unsupported-edition-engines-node-version') === 0) {
^
if (editionError.code.indexOf('unsupported-edition-engines-node-version') === 0) {
^
TypeError: Cannot read property 'indexOf' of undefined
```

@@ -35,7 +47,9 @@

```
./node_modules/errlop/index.js:4
module.exports = require('editions').requirePackage(__dirname, require)
^
module.exports = require('editions').requirePackage(\_\_dirname, require)
^
TypeError: require(...).requirePackage is not a function
```

@@ -132,1 +146,5 @@

- Initial release
```
```

9

package.json
{
"name": "editions",
"version": "2.3.0",
"version": "2.3.1",
"description": "Publish multiple editions for your JavaScript packages consistently and easily (e.g. source edition, esnext edition, es2015 edition)",

@@ -90,7 +90,7 @@ "homepage": "https://github.com/bevry/editions",

"engines": {
"node": "0.8 || 0.10 || 0.12 || 4 || 6 || 8 || 10 || 12 || 13"
"node": "0.8 || 0.10 || 0.12 || 4 || 6 || 8 || 10 || 12 || 13 || 14"
}
}
],
"types": "source/index.ts",
"types": "./compiled-types/",
"type": "commonjs",

@@ -120,4 +120,5 @@ "main": "edition-es5/index.js",

"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:edition-es5",
"our:compile": "npm run our:compile:edition-es5 && npm run our:compile:types",
"our:compile:edition-es5": "tsc --module commonjs --target ES5 --outDir ./edition-es5 --project tsconfig.json && test -d edition-es5/source && ( mv edition-es5/source edition-temp && rm -Rf edition-es5 && mv edition-temp edition-es5 ) || true",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./compiled-types/ --declarationMap",
"our:deploy": "echo no need for this project",

@@ -124,0 +125,0 @@ "our:meta": "npm run our:meta:docs && npm run our:meta:projectz",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc