@annotation-studio/plugin-core
Advanced tools
Comparing version 1.0.0-next.91d87b59 to 1.0.0-next.aa8ec3d4
@@ -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(); |
{ | ||
"name": "@annotation-studio/plugin-core", | ||
"version": "1.0.0-next.91d87b59", | ||
"version": "1.0.0-next.aa8ec3d4", | ||
"description": "Annotation studio core plugin", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"watch": "./bin/watch", | ||
"watch": "nwb-watch-module", | ||
"build": "nwb build-web-module --copy-files", | ||
@@ -20,15 +20,15 @@ "clean": "nwb clean-module", | ||
"test:watch": "echo \"No tests in this package\"", | ||
"prepublish": "npm run build" | ||
"prepublish": "NODE_ENV=production npm run build" | ||
}, | ||
"peerDependencies": { | ||
"@annotation-studio/bridge": "^1.0.0-rc.13", | ||
"@annotation-studio/redux": "^1.0.0-rc.13", | ||
"@annotation-studio/bridge": "^1.0.0-rc.14", | ||
"@annotation-studio/redux": "^1.0.0-rc.14", | ||
"moment": "*", | ||
"react": "*", | ||
"react-dom": "*", | ||
"react": "^15.6.2", | ||
"react-dom": "^15.6.2", | ||
"react-redux": "*" | ||
}, | ||
"devDependencies": { | ||
"@annotation-studio/bridge": "^1.0.0-next.91d87b59", | ||
"@annotation-studio/redux": "^1.0.0-next.91d87b59", | ||
"@annotation-studio/bridge": "^1.0.0-next.aa8ec3d4", | ||
"@annotation-studio/redux": "^1.0.0-next.aa8ec3d4", | ||
"babel-cli": "^6.24.1", | ||
@@ -42,4 +42,5 @@ "babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"nwb": "^0.21.5", | ||
"react": "*", | ||
"react-dom": "*", | ||
"nwb-watch": "^1.0.0-next.aa8ec3d4", | ||
"react": "^15.6.2", | ||
"react-dom": "^15.6.2", | ||
"react-redux": "*" | ||
@@ -46,0 +47,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35521
14
736