Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@annotation-studio/plugin-core

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotation-studio/plugin-core - npm Package Compare versions

Comparing version 1.0.0-pr.1ec18cea to 1.0.0-pr.2e441e33

12

es/core.js

@@ -11,3 +11,3 @@ var _class, _temp2;

import { connector } from '@annotation-studio/redux';
import { changeFingerprintSource, changeFingerprintIdentity, changeFingerPrintCreator } from '@annotation-studio/redux/es/actions/drafts';
import { isSavedDraft, changeFingerprintSource, changeFingerprintIdentity, changeFingerPrintCreator } from '@annotation-studio/redux/es/actions/drafts';
import { getAllAnnotationsFromCollection } from '@annotation-studio/redux/es/lib/elucidate/index';

@@ -120,12 +120,2 @@ import { asyncForEach } from './core.utils';

var isSavedDraft = function isSavedDraft(annotation) {
if (annotation.motivation !== 'http://www.digirati.com/ns/crowds#drafting') {
return false;
}
if (Array.isArray(annotation.body)) {
return false;
}
return annotation.body.purpose === 'editing';
};
// Set collection.

@@ -132,0 +122,0 @@ createCollection(subject, subject).then(function (c) {

@@ -132,12 +132,2 @@ 'use strict';

var isSavedDraft = function isSavedDraft(annotation) {
if (annotation.motivation !== 'http://www.digirati.com/ns/crowds#drafting') {
return false;
}
if (Array.isArray(annotation.body)) {
return false;
}
return annotation.body.purpose === 'editing';
};
// Set collection.

@@ -148,3 +138,3 @@ createCollection(subject, subject).then(function (c) {

return (0, _core.asyncForEach)(iterable, function (i) {
if (isSavedDraft(i)) {
if ((0, _drafts.isSavedDraft)(i)) {
var draft = JSON.parse(i.body.value);

@@ -151,0 +141,0 @@ var identity = i.id.substr(i.id.length - 1) === '/' ? i.id.substr(0, i.id.length - 1).split('/').pop() : i.id.split('/').pop();

6

package.json
{
"name": "@annotation-studio/plugin-core",
"version": "1.0.0-pr.1ec18cea",
"version": "1.0.0-pr.2e441e33",
"description": "Annotation studio core plugin",

@@ -30,4 +30,4 @@ "main": "lib/index.js",

"devDependencies": {
"@annotation-studio/bridge": "^1.0.0-pr.1ec18cea",
"@annotation-studio/redux": "^1.0.0-pr.1ec18cea",
"@annotation-studio/bridge": "^1.0.0-pr.2e441e33",
"@annotation-studio/redux": "^1.0.0-pr.2e441e33",
"babel-cli": "^6.24.1",

@@ -34,0 +34,0 @@ "babel-plugin-transform-flow-strip-types": "^6.22.0",

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