Giter Site home page Giter Site logo

nickrimmer / insomnia-plugin-free-sync Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 3.0 610 KB

Insomnia plugin to save collections into a file

Home Page: https://insomnia.rest/plugins/insomnia-plugin-free-sync

JavaScript 6.23% TypeScript 89.25% SCSS 4.52%
insomnia insomnia-plugin react typescript

insomnia-plugin-free-sync's Introduction

icon Free sync - plugin for Insomnia

If you like this plugin, leave it a โญ on Github!

Overview

This plugin use internal Insomnia methods to Import/Export workspaces as a JSON file. Additionally plugin allows to configure what should be synchronized.

npm/content/readme-workspace-items.jpg

Installation

You can find the plugin at this link.

How to use it

Initialization

  • Create a new project from within insomnia
  • Configure the project as needed
  • Open workspace menu and select Free sync: Configuration
  • When file path is configured, workspace can be synchronized with Save workspace / Load workspace options

Import

  • Import the previously exported workspace json file as new project
  • Open workspace menu and select Free sync: Configuration
  • When file path is configured, workspace can be synchronized with Save workspace / Load workspace options

npm/content/readme-workspace-actions.jpg

How to contribute

  • install NPM packages with npm ci command in project folder (npm and NODE.js should be installed)
  • build plugin JS file with npm run build
  • auto build on file changes with npm run watch

Contributions, issues and feature requests are welcome. Feel free to open an issue or create a pull request.

insomnia-plugin-free-sync's People

Contributors

eljoth avatar ericksonlargura avatar nickrimmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

insomnia-plugin-free-sync's Issues

Failed to load plugin

Stack trace:

Error: Cannot find module 'react'
Require stack:
- /Users/surendra/Library/Application Support/Insomnia/plugins/insomnia-plugin-free-sync/index.js
- /Applications/Insomnia.app/Contents/Resources/app.asar/index.html
    at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
    at o._resolveFilename (node:electron/js2c/renderer_init:2:3833)
    at Module._load (node:internal/modules/cjs/loader:811:27)
    at f._load (node:electron/js2c/asar_bundle:2:13328)
    at o._load (node:electron/js2c/renderer_init:2:3109)
    at Module.require (node:internal/modules/cjs/loader:1035:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/surendra/Library/Application Support/Insomnia/plugins/insomnia-plugin-free-sync/index.js:201:29)
    at Object.<anonymous> (/Users/surendra/Library/Application Support/Insomnia/plugins/insomnia-plugin-free-sync/index.js:408:3)
    at Module._compile (node:internal/modules/cjs/loader:1141:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
    at Module.load (node:internal/modules/cjs/loader:1011:32)
    at Module._load (node:internal/modules/cjs/loader:846:12)
    at f._load (node:electron/js2c/asar_bundle:2:13328)
    at o._load (node:electron/js2c/renderer_init:2:3109)
    at Module.require (node:internal/modules/cjs/loader:1035:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at z9 (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:75235)
    at ND (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:75885)
    at async f (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:176:880)

Version:
Insomnia 2022.7.0
Build date: 12/15/2022
OS: Darwin arm64 21.5.0
Electron: 22.0.0
Node: 16.17.1
V8: 10.8.168.20-electron.0
Architecture: arm64

syncing to a directory unexpectedly clears the directory

Description of the issue

Because the sync directory is the default option, I selected a directory on my system to sync to, expecting Free Sync to just drop the generated files to sync into there, just like you specify home directories in other tools. Unfortunately for me I selected my projects directory for this.
After hitting "Save workspace" I found that my whole projects directory was deleted and overwritten with Free Sync files.

Expected Result

I would have expected for Free Sync to not erase the directory contents and instead just create the self-managed files or directories there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.