Skip to content

Commit f3bce4f

Browse files
committed
build: release 1.3.0
- support sheetInfo - add examples for v1.3.0
1 parent a01e0ff commit f3bce4f

File tree

3 files changed

+1644
-1676
lines changed

3 files changed

+1644
-1676
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ yarn add nuxt-google-sheets-parser
3737
export default {
3838
// ...
3939
methods: {
40-
parseSheet (sheetId, sheetName = null) {
41-
return this.$gsparser.parse(sheetId, sheetName)
40+
parseSheet (sheetId, sheetInfo = { sheetId: null, sheetName: null }) {
41+
return this.$gsparser.parse(sheetId, sheetInfo)
4242
}
4343
},
4444
async mounted () {
@@ -50,6 +50,13 @@ export default {
5050

5151
const data2 = await this.parseSheet(sheetId, 'Sheet2')
5252
console.log(data2) // [{"a":10,"b":20,"c":30},{"a":40,"b":50,"c":60},{"a":70,"b":80,"c":90}]
53+
54+
// since v1.3.0
55+
const data3 = await this.parseSheet(sheetId, { sheetId: 1839148703 }) // or pass { sheetName: 'Sheet1' }
56+
console.log(data3) // [{"a":1,"b":2,"c":3},{"a":4,"b":5,"c":6},{"a":7,"b":8,"c":9}]
57+
58+
const data4 = await this.parseSheet(sheetId, { sheetId: 784337977 }) // or pass { sheetName: 'Sheet2' }
59+
console.log(data4) // [{"a":10,"b":20,"c":30},{"a":40,"b":50,"c":60},{"a":70,"b":80,"c":90}]
5360
},
5461
// ...
5562
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-google-sheets-parser",
3-
"version": "1.2.4",
3+
"version": "1.3.0",
44
"description": "public google sheets parser for nuxt.js",
55
"repository": "https://github.com/fureweb-com/nuxt-google-sheets-parser",
66
"keywords": [
@@ -21,7 +21,7 @@
2121
"lint": "eslint --ext .js,.vue ."
2222
},
2323
"dependencies": {
24-
"public-google-sheets-parser": "^1.2.4"
24+
"public-google-sheets-parser": "^1.3.0"
2525
},
2626
"devDependencies": {
2727
"@babel/core": "latest",

0 commit comments

Comments
 (0)