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 3.5.0-next.1591793806.49ddb4978d18a39054725f9b32b0a45517418af6 to 3.5.0-next.1592598521.af6c83608a8d55811bb5a533fdc369e3e0d84f78

6

edition-es5/index.js

@@ -27,3 +27,3 @@ /* eslint no-console:0 */

// Imports
var path_1 = __importDefault(require('path'))
var path_1 = require('path')
var semver_1 = __importDefault(require('semver'))

@@ -93,3 +93,3 @@ var util_js_1 = require('./util.js')

function loadEdition(edition, opts) {
var entry = path_1.default.resolve(
var entry = path_1.resolve(
opts.cwd || '',

@@ -377,3 +377,3 @@ edition.directory,

// Load the package.json file to fetch `name` for debugging and `editions` for loading
var packagePath = path_1.default.resolve(cwd || '', 'package.json')
var packagePath = path_1.resolve(cwd || '', 'package.json')
var editions = require(packagePath).editions

@@ -380,0 +380,0 @@ var opts = {

{
"name": "editions",
"version": "3.5.0-next.1591793806.49ddb4978d18a39054725f9b32b0a45517418af6",
"version": "3.5.0-next.1592598521.af6c83608a8d55811bb5a533fdc369e3e0d84f78",
"description": "Publish multiple editions for your JavaScript packages consistently and easily (e.g. source edition, esnext edition, es2015 edition)",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/editions",

@@ -5,3 +5,3 @@ /* eslint no-console:0 */

// Imports
import pathUtil from 'path'
import { resolve } from 'path'
import semver from 'semver'

@@ -183,3 +183,3 @@ import { errtion, stringify, simplifyRange } from './util.js'

export function loadEdition(edition: Edition, opts: EditionOptions): any {
const entry = pathUtil.resolve(
const entry = resolve(
opts.cwd || '',

@@ -433,3 +433,3 @@ edition.directory,

// Load the package.json file to fetch `name` for debugging and `editions` for loading
const packagePath = pathUtil.resolve(cwd || '', 'package.json')
const packagePath = resolve(cwd || '', 'package.json')
const { editions } = require(packagePath)

@@ -436,0 +436,0 @@ const opts = { packagePath, cwd, require, entry }

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