Skip to content

Commit

Permalink
Use subsume-limited
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentuso committed Jul 30, 2017
1 parent 4600a10 commit 9bf6862
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ const api = new ParseServer({
### Client

The adapter key (corresponding to a key in the `adapters` object above) must be embedded in the filename.
This uses [subsume](https://github.com/sindresorhus/subsume) to parse the filename and determine the adapter key.
This uses [subsume-limited](https://github.com/stephentuso/subsume-limited) to parse the filename and determine the adapter key.
If writing a JS app you could do something like this to help create files:

```javascript
// Utils
const Subsume = require('subsume')
const Subsume = require('subsume-limited')

const subsume = new Subsume('unique') // same id that was passed to constructor on server

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Subsume = require('subsume')
const Subsume = require('subsume-limited')

function MultiFilesAdapter (options) {
this._subsume = new Subsume(options.id)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"homepage": "https://github.com/stephentuso/parse-server-multi-files-adapter#readme",
"dependencies": {
"subsume": "^1.0.0"
"subsume-limited": "^1.1.0"
},
"devDependencies": {
"eslint": "^4.3.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,9 @@ strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

subsume@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/subsume/-/subsume-1.0.0.tgz#da977c7b43da53064e1eb8842a47486aa00a173c"
subsume-limited@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/subsume-limited/-/subsume-limited-1.1.0.tgz#b39669590ec8e5c38c4aa40b612ec0deb631d197"
dependencies:
escape-string-regexp "^1.0.5"
unique-string "^1.0.0"
Expand Down

0 comments on commit 9bf6862

Please sign in to comment.