mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Publish
- insomnia-plugin-base64@1.0.2 - insomnia-plugin-default-headers@1.0.3 - insomnia-plugin-file@1.0.2 - insomnia-plugin-hash@1.0.2 - insomnia-plugin-now@1.0.2 - insomnia-plugin-request@1.0.2 - insomnia-plugin-response@1.0.2 - insomnia-plugin-uuid@1.0.2 - insomnia-cookies@0.0.3 - insomnia-importers@1.5.3 - insomnia-prettify@0.1.0 - insomnia-url@0.1.0 - insomnia-xpath@0.0.3
This commit is contained in:
parent
aa8a77d973
commit
3f8326570d
@ -1,4 +1,4 @@
|
||||
import * as packageJSON from '../package.json';
|
||||
import * as packageJSON from '../../package.json';
|
||||
import * as electron from 'electron';
|
||||
import path from 'path';
|
||||
import mkdirp from 'mkdirp';
|
||||
@ -6,15 +6,15 @@ import mkdirp from 'mkdirp';
|
||||
// App Stuff
|
||||
|
||||
export function getAppVersion () {
|
||||
return packageJSON.version;
|
||||
return packageJSON.app.version;
|
||||
}
|
||||
|
||||
export function getAppLongName () {
|
||||
return packageJSON.longName;
|
||||
return packageJSON.app.longName;
|
||||
}
|
||||
|
||||
export function getAppName () {
|
||||
return packageJSON.productName;
|
||||
return packageJSON.app.productName;
|
||||
}
|
||||
|
||||
export function getAppPlatform () {
|
||||
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia-app",
|
||||
"version": "5.12.0-beta.3",
|
||||
"productName": "Insomnia",
|
||||
"longName": "Insomnia REST Client",
|
||||
"description": "Debug APIs like a human, not a robot",
|
||||
"homepage": "https://insomnia.rest",
|
||||
"author": "Insomnia <support@insomnia.rest>",
|
||||
"main": "main.min.js"
|
||||
}
|
2079
packages/insomnia-app/package-lock.json
generated
2079
packages/insomnia-app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,19 @@
|
||||
{
|
||||
"name": "insomnia-app",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "Insomnia App",
|
||||
"name": "insomnia-app",
|
||||
"app": {
|
||||
"name": "insomnia",
|
||||
"main": "main.min.js",
|
||||
"productName": "Insomnia",
|
||||
"version": "5.12.0-beta.3",
|
||||
"longName": "Insomnia REST Client"
|
||||
},
|
||||
"licence": "MIT",
|
||||
"homepage": "https://insomnia.rest",
|
||||
"homepage": "https://insomnia.rest/",
|
||||
"description": "Debug APIs like a human, not a robot",
|
||||
"author": "Insomnia <support@insomnia.rest>",
|
||||
"main": "app/main.min.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/getinsomnia/insomnia"
|
||||
@ -14,7 +23,7 @@
|
||||
"test": "flow check && npm run lint && cross-env NODE_ENV=test jest --silent",
|
||||
"test-appveyor": "npm run test -- --maxWorkers 1",
|
||||
"bootstrap": "npm install && electron-rebuild -f -w node-libcurl",
|
||||
"start:electron": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.electron.babel.js && INSOMNIA_ENV=development electron app",
|
||||
"start:electron": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.electron.babel.js && INSOMNIA_ENV=development electron .",
|
||||
"start:dev-server": "webpack-dev-server --config ./webpack/webpack.config.development.babel.js",
|
||||
"start": "concurrently --kill-others \"npm run start:dev-server\" \"npm run start:electron\"",
|
||||
"build": "node ./scripts/build.js",
|
||||
@ -152,7 +161,7 @@
|
||||
"electron-builder-lib": "^19.46.3",
|
||||
"electron-builder-squirrel-windows": "^19.46.0",
|
||||
"electron-rebuild": "^1.6.0",
|
||||
"eslint": "^3.16.1",
|
||||
"eslint": "^4.12.0",
|
||||
"eslint-config-semistandard": "^11.0.0",
|
||||
"eslint-config-standard": "^10.2.1",
|
||||
"eslint-plugin-filenames": "^1.1.0",
|
||||
@ -168,7 +177,6 @@
|
||||
"file-loader": "^1.1.5",
|
||||
"flow": "^0.2.3",
|
||||
"flow-bin": "^0.58.0",
|
||||
"jest": "^21.2.1",
|
||||
"less": "^2.7.2",
|
||||
"less-loader": "^4.0.5",
|
||||
"ncp": "^2.0.0",
|
||||
|
@ -9,7 +9,7 @@ const configRenderer = require('../webpack/webpack.config.production.babel');
|
||||
const configMain = require('../webpack/webpack.config.electron.babel');
|
||||
|
||||
// Start build if ran from CLI
|
||||
if (require.start === module) {
|
||||
if (require.main === module) {
|
||||
process.nextTick(async () => {
|
||||
await module.exports.start();
|
||||
});
|
||||
@ -32,7 +32,7 @@ module.exports.start = async function () {
|
||||
await copyFiles('../app/icons/', '../build/');
|
||||
|
||||
// Generate package.json
|
||||
await generatePackageJson('../package.json', '../app/package.json', '../build/package.json');
|
||||
await generatePackageJson('../package.json', '../build/package.json');
|
||||
|
||||
// Install Node modules
|
||||
console.log('[build] Installing dependencies');
|
||||
@ -100,16 +100,30 @@ async function install (relDir) {
|
||||
});
|
||||
}
|
||||
|
||||
function generatePackageJson (relBasePkg, relAppPkg, relOutPkg) {
|
||||
function generatePackageJson (relBasePkg, relOutPkg) {
|
||||
// Read package.json's
|
||||
const basePath = path.resolve(__dirname, relBasePkg);
|
||||
const appPath = path.resolve(__dirname, relAppPkg);
|
||||
const outPath = path.resolve(__dirname, relOutPkg);
|
||||
|
||||
const basePkg = JSON.parse(fs.readFileSync(basePath));
|
||||
const appPkg = JSON.parse(fs.readFileSync(appPath));
|
||||
|
||||
appPkg.dependencies = {};
|
||||
const appPkg = {
|
||||
name: 'insomnia',
|
||||
version: basePkg.app.version,
|
||||
productName: basePkg.app.productName,
|
||||
longName: basePkg.app.longName,
|
||||
description: basePkg.description,
|
||||
homepage: basePkg.homepage,
|
||||
author: basePkg.author,
|
||||
main: 'main.min.js',
|
||||
dependencies: {}
|
||||
};
|
||||
|
||||
for (const key of Object.keys(appPkg)) {
|
||||
if (key === undefined) {
|
||||
throw new Error(`[build] missing "app.${key}" from package.json`);
|
||||
}
|
||||
}
|
||||
|
||||
// Figure out which dependencies to pack
|
||||
const allDependencies = Object.keys(basePkg.dependencies);
|
||||
|
@ -12,7 +12,7 @@ const PLATFORM_MAP = {
|
||||
};
|
||||
|
||||
// Start package if ran from CLI
|
||||
if (require.start === module) {
|
||||
if (require.main === module) {
|
||||
process.nextTick(async () => {
|
||||
await buildTask.start();
|
||||
await module.exports.start();
|
||||
|
994
packages/insomnia-cookies/package-lock.json
generated
994
packages/insomnia-cookies/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-cookies",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Cookie utilities",
|
||||
"license": "MIT",
|
||||
@ -10,5 +10,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"tough-cookie": "^2.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-importers",
|
||||
"version": "1.5.2",
|
||||
"version": "1.5.3",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Various data importers for Insomnia",
|
||||
"license": "MIT",
|
||||
@ -18,5 +18,8 @@
|
||||
"dependencies": {
|
||||
"commander": "^2.9.0",
|
||||
"shell-quote": "^1.6.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ const fs = require('fs');
|
||||
const {version} = require('../package.json');
|
||||
|
||||
module.exports.go = function () {
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
||||
// Configure the arguments parsing //
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
|
||||
|
@ -1,11 +1,14 @@
|
||||
{
|
||||
"name": "insomnia-prettify",
|
||||
"version": "0.0.3",
|
||||
"version": "0.1.0",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Prettification utilities for Insomnia",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,14 @@
|
||||
{
|
||||
"name": "insomnia-url",
|
||||
"version": "0.0.2",
|
||||
"version": "0.1.0",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "URL Utilities",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-xpath",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Query XML using XPath",
|
||||
"license": "MIT",
|
||||
@ -9,8 +9,11 @@
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"dependencies": {
|
||||
"insomnia-cookies": "^0.0.2",
|
||||
"insomnia-cookies": "^0.0.3",
|
||||
"xmldom": "^0.1.27",
|
||||
"xpath": "^0.0.26"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
1000
plugins/insomnia-plugin-base64/package-lock.json
generated
Normal file
1000
plugins/insomnia-plugin-base64/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-base64",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia base64 template tag",
|
||||
"license": "MIT",
|
||||
@ -15,5 +15,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node --version"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
1000
plugins/insomnia-plugin-default-headers/package-lock.json
generated
Normal file
1000
plugins/insomnia-plugin-default-headers/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-default-headers",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Various data importers for Insomnia",
|
||||
"license": "MIT",
|
||||
@ -12,5 +12,8 @@
|
||||
"insomnia": {
|
||||
"name": "default-headers",
|
||||
"description": "Add default headers to requests"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
1000
plugins/insomnia-plugin-file/package-lock.json
generated
Normal file
1000
plugins/insomnia-plugin-file/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-file",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia file templte tag",
|
||||
"license": "MIT",
|
||||
@ -14,5 +14,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
1000
plugins/insomnia-plugin-hash/package-lock.json
generated
Normal file
1000
plugins/insomnia-plugin-hash/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-hash",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia hash template tag",
|
||||
"license": "MIT",
|
||||
@ -15,5 +15,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
994
plugins/insomnia-plugin-now/package-lock.json
generated
994
plugins/insomnia-plugin-now/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-now",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia now template tag",
|
||||
"license": "MIT",
|
||||
@ -17,5 +17,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "^2.19.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
1000
plugins/insomnia-plugin-request/package-lock.json
generated
Normal file
1000
plugins/insomnia-plugin-request/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-request",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia request template tag",
|
||||
"license": "MIT",
|
||||
@ -16,7 +16,10 @@
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"dependencies": {
|
||||
"insomnia-cookies": "^0.0.2",
|
||||
"insomnia-url": "^0.0.2"
|
||||
"insomnia-cookies": "^0.0.3",
|
||||
"insomnia-url": "^0.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
964
plugins/insomnia-plugin-response/package-lock.json
generated
964
plugins/insomnia-plugin-response/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-response",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia response template tag",
|
||||
"license": "MIT",
|
||||
@ -16,7 +16,10 @@
|
||||
"test": "jest --silent"
|
||||
},
|
||||
"dependencies": {
|
||||
"insomnia-xpath": "^0.0.2",
|
||||
"insomnia-xpath": "^0.0.3",
|
||||
"jsonpath": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
994
plugins/insomnia-plugin-uuid/package-lock.json
generated
994
plugins/insomnia-plugin-uuid/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "insomnia-plugin-uuid",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "Gregory Schier <gschier1990@gmail.com>",
|
||||
"description": "Insomnia uuid template tag",
|
||||
"license": "MIT",
|
||||
@ -17,5 +17,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"uuid": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.12.0"
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@
|
||||
"babel-preset-es2015": "6.3.13",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"concurrently": "^3.1.0",
|
||||
"eslint": "^4.12.0",
|
||||
"flow": "^0.2.3",
|
||||
"json-loader": "^0.5.7",
|
||||
"netlify-cli": "^1.2.2",
|
||||
|
Loading…
Reference in New Issue
Block a user